mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
pythonPackages.nipype: To separate file.
This commit is contained in:
parent
1832571dc6
commit
c1eeedaf4a
69
pkgs/development/python-modules/nipype/default.nix
Normal file
69
pkgs/development/python-modules/nipype/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user