Merge pull request #16470 from bcdarwin/nipy

pythonPackages.nipy: init at 0.4.0

authored by

Frederik Rietdijk and committed by
GitHub
c88b4060 8084977e

+42
+42
pkgs/top-level/python-packages.nix
··· 13602 13602 }; 13603 13603 }; 13604 13604 13605 + nipy = buildPythonPackage rec { 13606 + version = "0.4.0"; 13607 + name = "nipy-${version}"; 13608 + 13609 + disabled = pythonOlder "2.6"; 13610 + 13611 + checkPhase = '' # wants to be run in a different directory 13612 + mkdir nosetests 13613 + cd nosetests 13614 + ${python.interpreter} -c "import nipy; nipy.test()" 13615 + rm -rf . 13616 + ''; 13617 + # failing test: 13618 + # nipy.algorithms.statistics.models.tests.test_olsR.test_results(11.593139639404727, 11.593140144880794, 6) # disagrees by 1 at 6th decimal place 13619 + # erroring tests: 13620 + # nipy.modalities.fmri.fmristat.tests.test_FIAC.test_altprotocol 13621 + # nipy.modalities.fmri.fmristat.tests.test_FIAC.test_agreement 13622 + # 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 13623 + # nipy.tests.test_scripts.test_nipy_3_4d # ditto re.: `nipy_3_4d` script 13624 + doCheck = false; 13625 + 13626 + src = pkgs.fetchurl { 13627 + url = "mirror://pypi/n/nipy/${name}.tar.gz"; 13628 + sha256 = "1hnbn2i4fjxflaaz082s2c57hfp59jfra1zayz1iras5p2dy21nr"; 13629 + }; 13630 + 13631 + buildInputs = stdenv.lib.optional doCheck [ self.nose ]; 13632 + 13633 + propagatedBuildInputs = with self; [ 13634 + nibabel 13635 + numpy 13636 + scipy 13637 + sympy 13638 + ]; 13639 + 13640 + meta = { 13641 + homepage = http://nipy.org/nipy/; 13642 + description = "Software for structural and functional neuroimaging analysis"; 13643 + license = licenses.bsd3; 13644 + }; 13645 + }; 13646 + 13605 13647 nipype = buildPythonPackage rec { 13606 13648 version = "0.10.0"; 13607 13649 name = "nipype-${version}";