python311Packages.pybind11: 2.11.1 -> 2.12.0

Diff: https://github.com/pybind/pybind11/compare/v2.11.1...v2.12.0

Changelog: https://github.com/pybind/pybind11/blob/v2.12.0/docs/changelog.rst
This commit is contained in:
Robert Schütz 2024-03-28 15:28:08 -07:00 committed by Doron Behar
parent 6177b963e0
commit 3569a1158f
1 changed files with 15 additions and 7 deletions

View File

@ -4,6 +4,8 @@
, pythonOlder
, fetchFromGitHub
, cmake
, ninja
, setuptools
, boost
, eigen
, python
@ -37,23 +39,29 @@
else python.stdenv;
in buildPythonPackage rec {
pname = "pybind11";
version = "2.11.1";
format = "setuptools";
version = "2.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pybind";
repo = pname;
repo = "pybind11";
rev = "v${version}";
hash = "sha256-sO/Fa+QrAKyq2EYyYMcjPrYI+bdJIrDoj6L3JHoDo3E=";
hash = "sha256-DVkI5NxM5uME9m3PFYVpJOOa2j+yjL6AJn76fCTv2nE=";
};
postPatch = ''
sed -i "/^timeout/d" pyproject.toml
substituteInPlace pyproject.toml \
--replace-fail "timeout=300" ""
'';
nativeBuildInputs = [ cmake ];
build-system = [
cmake
ninja
setuptools
];
buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ];
propagatedBuildInputs = [ setupHook ];
propagatedNativeBuildInputs = [ setupHook ];
stdenv = stdenv';