python.pkgs.nibabel: fix build and run tests
This commit is contained in:
parent
567cbef598
commit
2fee113398
@ -1,9 +1,12 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, isPy3k
|
||||||
, numpy
|
, numpy
|
||||||
, nose
|
|
||||||
, six
|
, six
|
||||||
|
, bz2file
|
||||||
|
, nose
|
||||||
|
, mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -17,17 +20,24 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
nose
|
|
||||||
six
|
six
|
||||||
];
|
] ++ lib.optional (!isPy3k) bz2file;
|
||||||
|
|
||||||
# Failing tests
|
checkInputs = [ nose mock ];
|
||||||
# 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;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
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 lib; {
|
||||||
homepage = http://nipy.org/nibabel/;
|
homepage = http://nipy.org/nibabel/;
|
||||||
description = "Access a multitude of neuroimaging data formats";
|
description = "Access a multitude of neuroimaging data formats";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user