python38Packages.pybind11: fix build

This commit is contained in:
Phillip Cloud 2022-10-23 10:25:42 -07:00
parent b2f191295b
commit 89dcf2c639
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -1,6 +1,7 @@
{ stdenv
, lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, cmake
, boost
@ -9,6 +10,7 @@
, catch
, numpy
, pytestCheckHook
, libxcrypt
}:
buildPythonPackage rec {
@ -27,6 +29,7 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ];
dontUseCmakeBuildDir = true;