3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/nilearn/default.nix

41 lines
957 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, pytest, nose
, nibabel, numpy, pandas, scikitlearn, scipy, matplotlib, joblib }:
2017-09-15 21:48:53 +01:00
buildPythonPackage rec {
pname = "nilearn";
version = "0.6.2";
2017-09-15 21:48:53 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "cfc6cfda59a6f4247189f8ccf92e364de450460a15c0ec21bdb857c420dd198c";
2017-09-15 21:48:53 +01:00
};
postPatch = ''
substituteInPlace setup.py --replace "required_packages.append('sklearn')" ""
'';
# https://github.com/nilearn/nilearn/issues/2288
# disable some failing tests
checkPhase = ''
pytest nilearn/tests -k 'not test_cache_mixin_with_expand_user' # accesses ~/
'';
2017-09-15 21:48:53 +01:00
checkInputs = [ pytest nose ];
2017-09-15 21:48:53 +01:00
propagatedBuildInputs = [
joblib
2017-09-15 21:48:53 +01:00
matplotlib
nibabel
numpy
pandas
2017-09-15 21:48:53 +01:00
scikitlearn
scipy
];
meta = with stdenv.lib; {
homepage = "http://nilearn.github.io";
2017-09-15 21:48:53 +01:00
description = "A module for statistical learning on neuroimaging data";
license = licenses.bsd3;
};
}