Merge pull request #228171 from bcdarwin/unbreak-pybids-nipype-heudiconv

python310Packages.nipype: unbreak

authored by

Weijia Wang and committed by
GitHub
5f93ecea b4ed0a1f

+36 -58
+12 -15
pkgs/development/python-modules/nipype/default.nix
··· 1 { lib, stdenv 2 , buildPythonPackage 3 , fetchPypi 4 - , isPy27 5 # python dependencies 6 , click 7 , python-dateutil ··· 9 , filelock 10 , funcsigs 11 , future 12 , mock 13 , networkx 14 , nibabel ··· 26 , simplejson 27 , traits 28 , xvfbwrapper 29 - , pytest-cov 30 , codecov 31 - , sphinx 32 # other dependencies 33 , which 34 , bash ··· 40 , useNeurdflib ? false 41 }: 42 43 - let 44 - 45 - # This is a temporary convenience package for changes waiting to be merged into the primary rdflib repo. 46 - neurdflib = callPackage ./neurdflib.nix { }; 47 - 48 - in 49 - 50 buildPythonPackage rec { 51 pname = "nipype"; 52 version = "1.8.5"; 53 - disabled = isPy27; 54 55 src = fetchPypi { 56 inherit pname version; ··· 63 ''; 64 65 nativeBuildInputs = [ 66 - sphinx 67 ]; 68 69 propagatedBuildInputs = [ 70 click 71 python-dateutil ··· 73 filelock 74 funcsigs 75 future 76 networkx 77 nibabel 78 numpy ··· 80 prov 81 psutil 82 pydot 83 scipy 84 simplejson 85 traits 86 xvfbwrapper 87 - ] ++ [ (if useNeurdflib then neurdflib else rdflib) ]; 88 89 nativeCheckInputs = [ 90 pybids ··· 94 pytest 95 pytest-forked 96 pytest-xdist 97 - pytest-cov 98 which 99 ]; 100 ··· 102 doCheck = !stdenv.isDarwin; 103 # ignore tests which incorrect fail to detect xvfb 104 checkPhase = '' 105 - LC_ALL="en_US.UTF-8" pytest nipype/tests -k 'not display' 106 ''; 107 pythonImportsCheck = [ "nipype" ]; 108
··· 1 { lib, stdenv 2 , buildPythonPackage 3 , fetchPypi 4 + , pythonOlder 5 + , pythonRelaxDepsHook 6 # python dependencies 7 , click 8 , python-dateutil ··· 10 , filelock 11 , funcsigs 12 , future 13 + , looseversion 14 , mock 15 , networkx 16 , nibabel ··· 28 , simplejson 29 , traits 30 , xvfbwrapper 31 , codecov 32 # other dependencies 33 , which 34 , bash ··· 40 , useNeurdflib ? false 41 }: 42 43 buildPythonPackage rec { 44 pname = "nipype"; 45 version = "1.8.5"; 46 + disabled = pythonOlder "3.7"; 47 + format = "setuptools"; 48 49 src = fetchPypi { 50 inherit pname version; ··· 57 ''; 58 59 nativeBuildInputs = [ 60 + pythonRelaxDepsHook 61 ]; 62 63 + pythonRelaxDeps = [ "traits" ]; 64 + 65 propagatedBuildInputs = [ 66 click 67 python-dateutil ··· 69 filelock 70 funcsigs 71 future 72 + looseversion 73 networkx 74 nibabel 75 numpy ··· 77 prov 78 psutil 79 pydot 80 + rdflib 81 scipy 82 simplejson 83 traits 84 xvfbwrapper 85 + ]; 86 87 nativeCheckInputs = [ 88 pybids ··· 92 pytest 93 pytest-forked 94 pytest-xdist 95 which 96 ]; 97 ··· 99 doCheck = !stdenv.isDarwin; 100 # ignore tests which incorrect fail to detect xvfb 101 checkPhase = '' 102 + LC_ALL="en_US.UTF-8" pytest nipype/tests -k 'not display and not test_no_et_multiproc' 103 ''; 104 pythonImportsCheck = [ "nipype" ]; 105
-38
pkgs/development/python-modules/nipype/neurdflib.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 - , isodate 5 - , html5lib 6 - , sparqlwrapper 7 - , networkx 8 - , nose 9 - , python 10 - }: 11 - 12 - buildPythonPackage rec { 13 - pname = "neurdflib"; 14 - version = "5.0.1"; 15 - 16 - src = fetchPypi { 17 - inherit pname version; 18 - sha256 = "d34493cee15029ff5db16157429585ff863ba5542675a4d8a94a0da1bc6e3a50"; 19 - }; 20 - 21 - propagatedBuildInputs = [ isodate html5lib sparqlwrapper ]; 22 - 23 - nativeCheckInputs = [ networkx nose ]; 24 - 25 - # Python 2 syntax 26 - # Failing doctest 27 - doCheck = false; 28 - 29 - checkPhase = '' 30 - ${python.interpreter} run_tests.py 31 - ''; 32 - 33 - meta = with lib; { 34 - description = "A temporary convenience package for changes waiting to be merged into the primary rdflib repo"; 35 - homepage = "https://pypi.org/project/neurdflib"; 36 - license = licenses.bsd3; 37 - }; 38 - }
···
+24 -5
pkgs/development/python-modules/pybids/default.nix
··· 1 { buildPythonPackage 2 , lib 3 , fetchPypi 4 , click 5 , num2words 6 , numpy ··· 11 , bids-validator 12 , sqlalchemy 13 , pytestCheckHook 14 }: 15 16 buildPythonPackage rec { 17 - version = "0.15.5"; 18 pname = "pybids"; 19 20 src = fetchPypi { 21 inherit pname version; 22 - hash = "sha256-ryIiWpFoh0KSmyLI4LDn+EkXEYwDIr8/A7opoZJ+bo4="; 23 }; 24 25 propagatedBuildInputs = [ 26 click 27 num2words 28 numpy 29 scipy ··· 32 patsy 33 bids-validator 34 sqlalchemy 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 pythonImportsCheck = [ "bids" ]; 39 40 meta = with lib; { 41 description = "Python tools for querying and manipulating BIDS datasets"; 42 homepage = "https://github.com/bids-standard/pybids"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ jonringer ]; 45 - # Doesn't support sqlalchemy >=1.4 46 - # See https://github.com/bids-standard/pybids/issues/680 47 - broken = true; 48 }; 49 }
··· 1 { buildPythonPackage 2 , lib 3 , fetchPypi 4 + , fetchpatch 5 + , formulaic 6 , click 7 , num2words 8 , numpy ··· 13 , bids-validator 14 , sqlalchemy 15 , pytestCheckHook 16 + , versioneer 17 + , pythonRelaxDepsHook 18 }: 19 20 buildPythonPackage rec { 21 + version = "0.15.6"; 22 pname = "pybids"; 23 24 src = fetchPypi { 25 inherit pname version; 26 + hash = "sha256-OjWW08tyVDHkF0X3Pa+10HYD/7Gysp5DkEt9LaVxsdM="; 27 }; 28 29 + patches = [ 30 + # remove after next release 31 + (fetchpatch { 32 + name = "fix-pybids-sqlalchemy-dep"; 33 + url = "https://github.com/bids-standard/pybids/commit/5f008dfc282394ef94a68d47dba37ceead9eac9a.patch"; 34 + hash = "sha256-gx6w35XqDBZ8cTGHeY/mz2xNQqza9E5z8bRJR7mbPcg="; 35 + excludes = [ "pyproject.toml" ]; # not in PyPI dist 36 + }) 37 + ]; 38 + 39 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 40 + 41 + pythonRelaxDeps = [ "sqlalchemy" ]; 42 + 43 propagatedBuildInputs = [ 44 click 45 + formulaic 46 num2words 47 numpy 48 scipy ··· 51 patsy 52 bids-validator 53 sqlalchemy 54 + versioneer 55 ]; 56 57 nativeCheckInputs = [ pytestCheckHook ]; 58 pythonImportsCheck = [ "bids" ]; 59 + # looks for missing data: 60 + disabledTests = [ "test_config_filename" ]; 61 62 meta = with lib; { 63 description = "Python tools for querying and manipulating BIDS datasets"; 64 homepage = "https://github.com/bids-standard/pybids"; 65 license = licenses.mit; 66 maintainers = with maintainers; [ jonringer ]; 67 }; 68 }