mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, cython
|
|
, nose
|
|
, matplotlib
|
|
, nibabel
|
|
, numpy
|
|
, scipy
|
|
, sympy
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.5.0";
|
|
format = "setuptools";
|
|
pname = "nipy";
|
|
disabled = pythonOlder "2.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
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
|
|
${python.interpreter} -c "import nipy; nipy.test()"
|
|
rm -rf .
|
|
'';
|
|
|
|
# failing test:
|
|
# nipy.algorithms.statistics.models.tests.test_olsR.test_results(11.593139639404727, 11.593140144880794, 6) # disagrees by 1 at 6th decimal place
|
|
# erroring tests:
|
|
# nipy.modalities.fmri.fmristat.tests.test_FIAC.test_altprotocol
|
|
# nipy.modalities.fmri.fmristat.tests.test_FIAC.test_agreement
|
|
# nipy.tests.test_scripts.test_nipy_4d_realign # because `nipy_4d_realign` script isn't found at test time; works from nix-shell, so could be patched
|
|
# nipy.tests.test_scripts.test_nipy_3_4d # ditto re.: `nipy_3_4d` script
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://nipy.org/nipy";
|
|
description = "Software for structural and functional neuroimaging analysis";
|
|
license = licenses.bsd3;
|
|
};
|
|
|
|
}
|