diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-01-03 12:52:42 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-01-03 12:52:42 +0100 |
commit | fb0da935095f6e7a194d1ec05c7355e8d47fed0c (patch) | |
tree | e5fcce2ba8df5f6c186e3afc8f0995ec0294a032 /pkgs/development/python-modules/numpy | |
parent | 157ca8eb752674dc9e15e50921462386b545ce19 (diff) | |
download | nixpkgs-fb0da935095f6e7a194d1ec05c7355e8d47fed0c.tar nixpkgs-fb0da935095f6e7a194d1ec05c7355e8d47fed0c.tar.gz nixpkgs-fb0da935095f6e7a194d1ec05c7355e8d47fed0c.tar.bz2 nixpkgs-fb0da935095f6e7a194d1ec05c7355e8d47fed0c.tar.lz nixpkgs-fb0da935095f6e7a194d1ec05c7355e8d47fed0c.tar.xz nixpkgs-fb0da935095f6e7a194d1ec05c7355e8d47fed0c.tar.zst nixpkgs-fb0da935095f6e7a194d1ec05c7355e8d47fed0c.zip |
python3Packages.numpy: fix build
Diffstat (limited to 'pkgs/development/python-modules/numpy')
-rw-r--r-- | pkgs/development/python-modules/numpy/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix index d9ff919fe8f..bdd76696885 100644 --- a/pkgs/development/python-modules/numpy/default.nix +++ b/pkgs/development/python-modules/numpy/default.nix @@ -1,4 +1,15 @@ -{ lib, fetchPypi, python, buildPythonPackage, gfortran, pytest, blas, writeTextFile, isPyPy }: +{ lib +, fetchPypi +, python +, buildPythonPackage +, gfortran +, pytest +, blas +, writeTextFile +, isPyPy +, cython +, setuptoolsBuildHook + }: let blasImplementation = lib.nameFromURL blas.name "-"; @@ -17,6 +28,7 @@ let in buildPythonPackage rec { pname = "numpy"; version = "1.18.0"; + format = "pyproject.toml"; src = fetchPypi { inherit pname version; @@ -24,7 +36,7 @@ in buildPythonPackage rec { sha256 = "a9d72d9abaf65628f0f31bbb573b7d9304e43b1e6bbae43149c17737a42764c4"; }; - nativeBuildInputs = [ gfortran pytest ]; + nativeBuildInputs = [ gfortran pytest cython setuptoolsBuildHook ]; buildInputs = [ blas ]; patches = lib.optionals python.hasDistutilsCxxPatch [ |