python3Packages.numpy: fix build
This commit is contained in:
parent
157ca8eb75
commit
fb0da93509
|
@ -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
|
let
|
||||||
blasImplementation = lib.nameFromURL blas.name "-";
|
blasImplementation = lib.nameFromURL blas.name "-";
|
||||||
|
@ -17,6 +28,7 @@ let
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
pname = "numpy";
|
pname = "numpy";
|
||||||
version = "1.18.0";
|
version = "1.18.0";
|
||||||
|
format = "pyproject.toml";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
@ -24,7 +36,7 @@ in buildPythonPackage rec {
|
||||||
sha256 = "a9d72d9abaf65628f0f31bbb573b7d9304e43b1e6bbae43149c17737a42764c4";
|
sha256 = "a9d72d9abaf65628f0f31bbb573b7d9304e43b1e6bbae43149c17737a42764c4";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gfortran pytest ];
|
nativeBuildInputs = [ gfortran pytest cython setuptoolsBuildHook ];
|
||||||
buildInputs = [ blas ];
|
buildInputs = [ blas ];
|
||||||
|
|
||||||
patches = lib.optionals python.hasDistutilsCxxPatch [
|
patches = lib.optionals python.hasDistutilsCxxPatch [
|
||||||
|
|
Loading…
Reference in a new issue