From fc29fad23a2c5406eeefef41c2c3418d95518f31 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Fri, 4 Nov 2022 07:19:43 -0400 Subject: [PATCH] python38Packages.scipy: fix build --- pkgs/development/python-modules/scipy/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index e791454b9018..f85121a39ac3 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -2,6 +2,7 @@ , stdenv , fetchPypi , python +, pythonOlder , buildPythonPackage , cython , gfortran @@ -14,6 +15,7 @@ , pytest-xdist , numpy , pybind11 +, libxcrypt }: buildPythonPackage rec { @@ -28,7 +30,12 @@ buildPythonPackage rec { nativeBuildInputs = [ cython gfortran meson-python pythran pkg-config wheel ]; - buildInputs = [ numpy.blas pybind11 ]; + buildInputs = [ + numpy.blas + pybind11 + ] ++ lib.optionals (pythonOlder "3.9") [ + libxcrypt + ]; propagatedBuildInputs = [ numpy ];