nixpkgs/pkgs/development/python-modules/nilearn/default.nix

37 lines
868 B
Nix
Raw Normal View History

2017-09-15 22:48:53 +02:00
{ stdenv, buildPythonPackage, fetchPypi, nose, nibabel, numpy, scikitlearn
, scipy, matplotlib }:
buildPythonPackage rec {
pname = "nilearn";
2019-02-14 08:37:21 +01:00
version = "0.5.0";
name = pname + "-" + version;
2017-09-15 22:48:53 +02:00
src = fetchPypi {
inherit pname version;
2019-02-14 08:37:21 +01:00
sha256 = "085cd4f7c19a47ed9d951c853223190b9fb0dbddeaeedf8f86dfa9c53d6492ca";
2017-09-15 22:48:53 +02:00
};
# disable some failing tests
checkPhase = ''
nosetests nilearn/tests \
-e test_cache_mixin_with_expand_user -e test_clean_confounds -e test_detrend \
-e test_clean_detrending -e test_high_variance_confounds
'';
2017-09-15 22:48:53 +02:00
checkInputs = [ nose ];
2017-09-15 22:48:53 +02:00
propagatedBuildInputs = [
matplotlib
nibabel
numpy
scikitlearn
scipy
];
meta = with stdenv.lib; {
homepage = http://nilearn.github.io;
description = "A module for statistical learning on neuroimaging data";
license = licenses.bsd3;
};
}