about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pybind11/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pybind11/default.nix')
-rw-r--r--pkgs/development/python-modules/pybind11/default.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix
index 408544f424052..750ee618f9d2b 100644
--- a/pkgs/development/python-modules/pybind11/default.nix
+++ b/pkgs/development/python-modules/pybind11/default.nix
@@ -33,7 +33,7 @@ let
   # support for C++17 aligned allocations on macOS.
   # Tell clang we’re targeting 10.13 on x86_64-darwin while continuing to use the default SDK.
   stdenv' =
-    if stdenv.isDarwin && stdenv.isx86_64 then
+    if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 then
       python.stdenv.override (oldStdenv: {
         buildPlatform = oldStdenv.buildPlatform // {
           darwinMinVersion = "10.13";
@@ -50,21 +50,16 @@ let
 in
 buildPythonPackage rec {
   pname = "pybind11";
-  version = "2.12.0";
+  version = "2.13.5";
   pyproject = true;
 
   src = fetchFromGitHub {
     owner = "pybind";
     repo = "pybind11";
     rev = "v${version}";
-    hash = "sha256-DVkI5NxM5uME9m3PFYVpJOOa2j+yjL6AJn76fCTv2nE=";
+    hash = "sha256-cpxhrTFihA+gWmX62a+EQF3lccUyvu+d1MU2IC/CN6Q=";
   };
 
-  postPatch = ''
-    substituteInPlace pyproject.toml \
-      --replace-fail "timeout=300" ""
-  '';
-
   build-system = [
     cmake
     ninja
@@ -120,7 +115,7 @@ buildPythonPackage rec {
     "tests/extra_setuptools/test_setuphelper.py"
   ];
 
-  disabledTests = lib.optionals stdenv.isDarwin [
+  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
     # expects KeyError, gets RuntimeError
     # https://github.com/pybind/pybind11/issues/4243
     "test_cross_module_exception_translator"