mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
python3.pkgs.nitime: add build dependencies and relax numpy constraint
This commit is contained in:
parent
2b83a56180
commit
a2bb835e2c
@ -5,6 +5,9 @@
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, cython
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, wheel
|
||||
, numpy
|
||||
, scipy
|
||||
, matplotlib
|
||||
@ -23,11 +26,32 @@ buildPythonPackage rec {
|
||||
hash = "sha256-NnoVrSt6MTTcNup1e+/1v5JoHCYcycuQH4rHLzXJt+Y=";
|
||||
};
|
||||
|
||||
buildInputs = [ cython ];
|
||||
propagatedBuildInputs = [ numpy scipy matplotlib networkx nibabel ];
|
||||
# Upstream wants to build against the oldest version of numpy possible, but
|
||||
# we only want to build against the most recent version.
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "numpy==" "numpy>="
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
setuptools
|
||||
setuptools-scm
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
scipy
|
||||
matplotlib
|
||||
networkx
|
||||
nibabel
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
doCheck = !stdenv.isDarwin; # tests hang indefinitely
|
||||
|
||||
pythonImportsCheck = [ "nitime" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user