diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2016-06-24 16:55:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-24 16:55:10 +0200 |
commit | c88b4060e066aee05a03413a4e9ec2702ebad00d (patch) | |
tree | 235c79a07d71bdcf4a57a8724a06b2a21b709de3 | |
parent | 8084977ec82b88db26042f12741045961335a89c (diff) | |
parent | 786a10c9b6b0af4964534004ef9053103282c7da (diff) | |
download | nixlib-c88b4060e066aee05a03413a4e9ec2702ebad00d.tar nixlib-c88b4060e066aee05a03413a4e9ec2702ebad00d.tar.gz nixlib-c88b4060e066aee05a03413a4e9ec2702ebad00d.tar.bz2 nixlib-c88b4060e066aee05a03413a4e9ec2702ebad00d.tar.lz nixlib-c88b4060e066aee05a03413a4e9ec2702ebad00d.tar.xz nixlib-c88b4060e066aee05a03413a4e9ec2702ebad00d.tar.zst nixlib-c88b4060e066aee05a03413a4e9ec2702ebad00d.zip |
Merge pull request #16470 from bcdarwin/nipy
pythonPackages.nipy: init at 0.4.0
-rw-r--r-- | pkgs/top-level/python-packages.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index faed8db0846b..056e9cc54ca0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13602,6 +13602,48 @@ in modules // { }; }; + nipy = buildPythonPackage rec { + version = "0.4.0"; + name = "nipy-${version}"; + + disabled = pythonOlder "2.6"; + + 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; + + src = pkgs.fetchurl { + url = "mirror://pypi/n/nipy/${name}.tar.gz"; + sha256 = "1hnbn2i4fjxflaaz082s2c57hfp59jfra1zayz1iras5p2dy21nr"; + }; + + buildInputs = stdenv.lib.optional doCheck [ self.nose ]; + + propagatedBuildInputs = with self; [ + nibabel + numpy + scipy + sympy + ]; + + meta = { + homepage = http://nipy.org/nipy/; + description = "Software for structural and functional neuroimaging analysis"; + license = licenses.bsd3; + }; + }; + nipype = buildPythonPackage rec { version = "0.10.0"; name = "nipype-${version}"; |