pythonPackages.nipype: enable tests
This commit is contained in:
parent
db0fa06fce
commit
ee1896d63d
@ -21,8 +21,12 @@
|
|||||||
, simplejson
|
, simplejson
|
||||||
, traits
|
, traits
|
||||||
, xvfbwrapper
|
, xvfbwrapper
|
||||||
|
, pytestcov
|
||||||
|
, codecov
|
||||||
# other dependencies
|
# other dependencies
|
||||||
, which
|
, which
|
||||||
|
, bash
|
||||||
|
, glibcLocales
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert !isPy3k -> configparser != null;
|
assert !isPy3k -> configparser != null;
|
||||||
@ -39,9 +43,11 @@ buildPythonPackage rec {
|
|||||||
# see https://github.com/nipy/nipype/issues/2240
|
# see https://github.com/nipy/nipype/issues/2240
|
||||||
patches = [ ./prov-version.patch ];
|
patches = [ ./prov-version.patch ];
|
||||||
|
|
||||||
doCheck = false; # fails with TypeError: None is not callable
|
postPatch = ''
|
||||||
checkInputs = [ which ];
|
substituteInPlace nipype/interfaces/base/tests/test_core.py \
|
||||||
buildInputs = [ pytest mock ]; # required in installPhase
|
--replace "/usr/bin/env bash" "${bash}/bin/bash"
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
dateutil
|
dateutil
|
||||||
@ -62,6 +68,12 @@ buildPythonPackage rec {
|
|||||||
configparser
|
configparser
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytest mock pytestcov codecov which glibcLocales ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
LC_ALL="en_US.UTF-8" py.test -v --doctest-modules nipype
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://nipy.org/nipype/;
|
homepage = http://nipy.org/nipype/;
|
||||||
description = "Neuroimaging in Python: Pipelines and Interfaces";
|
description = "Neuroimaging in Python: Pipelines and Interfaces";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user