python3.pkgs.nitime: add build dependencies and relax numpy constraint

This commit is contained in:
Theodore Ni 2023-08-22 23:06:45 -07:00
parent 2b83a56180
commit a2bb835e2c
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -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; {