pythonPackages.nipype: To separate file.

This commit is contained in:
Ashley Gillman 2018-01-16 23:29:42 +10:00 committed by Frederik Rietdijk
parent 1832571dc6
commit c1eeedaf4a
2 changed files with 71 additions and 38 deletions

View File

@ -0,0 +1,69 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
# python dependencies
, click
, configparser ? null
, dateutil
, funcsigs
, future
, mock
, networkx
, nibabel
, numpy
, packaging
, prov
, psutil
, pydot
, pytest
, scipy
, simplejson
, traits
, xvfbwrapper
# other dependencies
, which
}:
assert !isPy3k -> configparser != null;
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "nipype";
version = "0.14.0";
src = fetchPypi {
inherit pname version;
sha256 = "0airdrh93vwmbfkqxp5cqfzm0zzqcvjnvphv3zhg197y39xxpl1k";
};
doCheck = false; # fails with TypeError: None is not callable
checkInputs = [ which ];
buildInputs = [ pytest mock ]; # required in installPhase
propagatedBuildInputs = [
click
dateutil
funcsigs
future
networkx
nibabel
numpy
packaging
prov
psutil
pydot
scipy
simplejson
traits
xvfbwrapper
] ++ stdenv.lib.optional (!isPy3k) [
configparser
];
meta = with stdenv.lib; {
homepage = http://nipy.org/nipype/;
description = "Neuroimaging in Python: Pipelines and Interfaces";
license = licenses.bsd3;
maintainers = with maintainers; [ ashgillman ];
};
}

View File

@ -11408,44 +11408,8 @@ in {
};
};
nipype = buildPythonPackage rec {
version = "0.14.0";
name = "nipype-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/n/nipype/${name}.tar.gz";
sha256 = "0airdrh93vwmbfkqxp5cqfzm0zzqcvjnvphv3zhg197y39xxpl1k";
};
doCheck = false; # fails with TypeError: None is not callable
checkInputs = [ pkgs.which ];
buildInputs = with self; [ pytest mock ];
propagatedBuildInputs = with self; [
click
dateutil
funcsigs
future
networkx
nibabel
numpy
packaging
prov
psutil
pydot
scipy
simplejson
traits
xvfbwrapper
] ++ stdenv.lib.optional (!isPy3k) [
configparser
];
meta = {
homepage = http://nipy.org/nipype/;
description = "Neuroimaging in Python: Pipelines and Interfaces";
license = licenses.bsd3;
maintainers = with maintainers; [ ashgillman ];
};
nipype = callPackage ../development/python-modules/nipype {
inherit (pkgs) which;
};
nose = buildPythonPackage rec {