mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python3Packages.nilearn: unbreak package
This commit is contained in:
parent
f5c191739b
commit
134b645343
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn
|
{ stdenv, buildPythonPackage, fetchPypi, pytest
|
||||||
, scipy, matplotlib }:
|
, nibabel, numpy, pandas, scikitlearn, scipy, matplotlib, joblib }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nilearn";
|
pname = "nilearn";
|
||||||
@ -10,19 +10,24 @@ buildPythonPackage rec {
|
|||||||
sha256 = "07eb764f2b7b39b487f806a067e394d8ebffff21f57cd1ecdb5c4030b7210210";
|
sha256 = "07eb764f2b7b39b487f806a067e394d8ebffff21f57cd1ecdb5c4030b7210210";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py --replace "required_packages.append('sklearn')" ""
|
||||||
|
'';
|
||||||
|
# https://github.com/nilearn/nilearn/issues/2288
|
||||||
|
|
||||||
# disable some failing tests
|
# disable some failing tests
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
nosetests nilearn/tests \
|
pytest nilearn/tests -k 'not test_cache_mixin_with_expand_user' # accesses ~/
|
||||||
-e test_cache_mixin_with_expand_user -e test_clean_confounds -e test_detrend \
|
|
||||||
-e test_clean_detrending -e test_high_variance_confounds
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
joblib
|
||||||
matplotlib
|
matplotlib
|
||||||
nibabel
|
nibabel
|
||||||
numpy
|
numpy
|
||||||
|
pandas
|
||||||
scikitlearn
|
scikitlearn
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user