diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/nipype/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/nipype/default.nix | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/nipype/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/nipype/default.nix index 80ee7691a1a5..f152287d25dc 100644 --- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/nipype/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/nipype/default.nix @@ -1,23 +1,19 @@ { stdenv , buildPythonPackage , fetchPypi -, isPy3k -, isPy38 +, isPy27 # python dependencies , click -, configparser ? null , dateutil , etelemetry , filelock , funcsigs , future -, futures , mock , networkx , nibabel , numpy , packaging -, pathlib2 , prov , psutil , pybids @@ -25,6 +21,7 @@ , pytest , pytest_xdist , pytest-forked +, rdflib , scipy , simplejson , traits @@ -37,10 +34,12 @@ , bash , glibcLocales , callPackage +# causes Python packaging conflict with any package requiring rdflib, +# so use the unpatched rdflib by default (disables Nipype provenance tracking); +# see https://github.com/nipy/nipype/issues/2888: +, useNeurdflib ? false }: -assert !isPy3k -> configparser != null; - let # This is a temporary convenience package for changes waiting to be merged into the primary rdflib repo. @@ -50,11 +49,12 @@ in buildPythonPackage rec { pname = "nipype"; - version = "1.5.1"; + version = "1.6.0"; + disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "3d6aa37186e1d2f90917dfdf1faf5aeff469912554990e5d182ffe8435f250d5"; + sha256 = "bc56ce63f74c9a9a23c6edeaf77631377e8ad2bea928c898cc89527a47f101cf"; }; postPatch = '' @@ -74,7 +74,6 @@ buildPythonPackage rec { funcsigs future networkx - neurdflib nibabel numpy packaging @@ -85,11 +84,7 @@ buildPythonPackage rec { simplejson traits xvfbwrapper - ] ++ stdenv.lib.optionals (!isPy3k) [ - configparser - futures - pathlib2 # darwin doesn't receive this transitively, but it is in install_requires - ]; + ] ++ [ (if useNeurdflib then neurdflib else rdflib) ]; checkInputs = [ pybids |