python311.pkgs.nipy: fix build

We have to regenerate the Cython C files for Python 3.11
compatibility.  This is a nice thing to be doing anyway, from a
bootstrappability point of view.

Link: https://github.com/nipy/nipy/issues/496#issuecomment-1382736563
This commit is contained in:
Alyssa Ross 2023-02-13 03:13:47 +00:00
parent d1801a813d
commit bf9ab6107e
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, pythonOlder
, cython
, nose
, matplotlib
, nibabel
@ -21,9 +22,14 @@ buildPythonPackage rec {
sha256 = "a8a2c97ce854fece4aced5a6394b9fdca5846150ad6d2a36b86590924af3c848";
};
nativeBuildInputs = [ cython ];
buildInputs = lib.optionals doCheck [ nose ];
propagatedBuildInputs = [ matplotlib nibabel numpy scipy sympy ];
preBuild = ''
make recythonize
'';
checkPhase = '' # wants to be run in a different directory
mkdir nosetests
cd nosetests