diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2019-01-17 20:25:35 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-01-18 09:37:10 +0100 |
commit | 2fee1133985106cc45930c9020da42db20fe845e (patch) | |
tree | 5c31b9c6b395386da0cd4c1e38a9933bf4da8b19 /pkgs/development/python-modules/nibabel | |
parent | 567cbef598bb970716ae9703c275b3e7a1447886 (diff) | |
download | nixpkgs-2fee1133985106cc45930c9020da42db20fe845e.tar nixpkgs-2fee1133985106cc45930c9020da42db20fe845e.tar.gz nixpkgs-2fee1133985106cc45930c9020da42db20fe845e.tar.bz2 nixpkgs-2fee1133985106cc45930c9020da42db20fe845e.tar.lz nixpkgs-2fee1133985106cc45930c9020da42db20fe845e.tar.xz nixpkgs-2fee1133985106cc45930c9020da42db20fe845e.tar.zst nixpkgs-2fee1133985106cc45930c9020da42db20fe845e.zip |
python.pkgs.nibabel: fix build and run tests
Diffstat (limited to 'pkgs/development/python-modules/nibabel')
-rw-r--r-- | pkgs/development/python-modules/nibabel/default.nix | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/nibabel/default.nix b/pkgs/development/python-modules/nibabel/default.nix index dc6b2e0668d..9c80301ce93 100644 --- a/pkgs/development/python-modules/nibabel/default.nix +++ b/pkgs/development/python-modules/nibabel/default.nix @@ -1,9 +1,12 @@ -{ stdenv +{ lib , buildPythonPackage , fetchPypi +, isPy3k , numpy -, nose , six +, bz2file +, nose +, mock }: buildPythonPackage rec { @@ -17,17 +20,24 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy - nose six - ]; + ] ++ lib.optional (!isPy3k) bz2file; + + checkInputs = [ nose mock ]; - # Failing tests - # nibabel.tests.test_minc1.test_old_namespace - # nibabel.gifti.tests.test_parse_gifti_fast.test_parse_dataarrays - # nibabel.gifti.tests.test_giftiio.test_read_deprecated - doCheck = false; + checkPhase = let + excludeTests = lib.optionals isPy3k [ + # https://github.com/nipy/nibabel/issues/691 + "nibabel.gifti.tests.test_giftiio.test_read_deprecated" + "nibabel.gifti.tests.test_parse_gifti_fast.test_parse_dataarrays" + "nibabel.tests.test_minc1.test_old_namespace" + ]; + # TODO: Add --with-doctest once all doctests pass + in '' + nosetests ${lib.concatMapStrings (test: "-e '${test}' ") excludeTests} + ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = http://nipy.org/nibabel/; description = "Access a multitude of neuroimaging data formats"; license = licenses.mit; |