python3Packages.nilearn: 0.6.2 -> 0.7.0

This commit is contained in:
Ben Darwin 2020-11-17 16:37:22 -05:00
parent c1dfbaa8ad
commit a319fd5d66

View File

@ -1,26 +1,17 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest, nose { lib, buildPythonPackage, fetchPypi, pytestCheckHook, matplotlib
, nibabel, numpy, pandas, scikitlearn, scipy, matplotlib, joblib }: , nibabel, numpy, pandas, scikitlearn, scipy, joblib, requests }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "nilearn"; pname = "nilearn";
version = "0.6.2"; version = "0.7.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "cfc6cfda59a6f4247189f8ccf92e364de450460a15c0ec21bdb857c420dd198c"; sha256 = "1rhpy6na7hkhc211ri14zghvmb2fxkh995wi09pkc68klf1dzjg7";
}; };
postPatch = '' checkInputs = [ pytestCheckHook ];
substituteInPlace setup.py --replace "required_packages.append('sklearn')" "" disabledTests = [ "test_clean_confounds" ]; # https://github.com/nilearn/nilearn/issues/2608
'';
# https://github.com/nilearn/nilearn/issues/2288
# disable some failing tests
checkPhase = ''
pytest nilearn/tests -k 'not test_cache_mixin_with_expand_user' # accesses ~/
'';
checkInputs = [ pytest nose ];
propagatedBuildInputs = [ propagatedBuildInputs = [
joblib joblib
@ -28,12 +19,13 @@ buildPythonPackage rec {
nibabel nibabel
numpy numpy
pandas pandas
requests
scikitlearn scikitlearn
scipy scipy
]; ];
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://nilearn.github.io"; homepage = "https://nilearn.github.io";
description = "A module for statistical learning on neuroimaging data"; description = "A module for statistical learning on neuroimaging data";
license = licenses.bsd3; license = licenses.bsd3;
}; };