git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.nipype: 1.1.5 -> 1.1.7 (#53254)

* pythonPackages.nipype: 1.1.5 -> 1.1.7 Fix build by dropping a patch for an issue that is already fixed. See: https://github.com/nipy/nipype/pull/2701 Also had to disable tests. See: https://github.com/nipy/nipype/issues/2839 * pythonPackages.xvfbwrapper: disable tests See: https://github.com/cgoldberg/xvfbwrapper/issues/30

commite9b34b1bfa30a51d3ca80bf87f371145a8b4e88c authorRobert Schütz <rschuetz17@gmail.com> dateFri 11 Jan 2019, 12:28 (8 years ago) parent9b17ee69257887
5 files changed+98−27
pkgs/development/python-modules/nipype/default.nix+26−6 pkgs/development/python-modules/nipype/move-uneeded-requires.patch+31 pkgs/development/python-modules/nipype/neurdflib.nix+38 pkgs/development/python-modules/nipype/prov-version.patch−21 pkgs/development/python-modules/xvfbwrapper/default.nix+3
pkgs/development/python-modules/nipype/default.nix+26−6
@@ -30,21 +30,28 @@
3030, which
3131, bash
3232, glibcLocales
33+, callPackage
3334}:
3435
3536assert !isPy3k -> configparser != null;
3637
38+let
39+
40+ # This is a temporary convenience package for changes waiting to be merged into the primary rdflib repo.
41+ neurdflib = callPackage ./neurdflib.nix { };
42+
43+in
44+
3745buildPythonPackage rec {
3846 pname = "nipype";
39− version = "1.1.5";
47+ version = "1.1.7";
4048
4149 src = fetchPypi {
4250 inherit pname version;
43− sha256 = "d49bbe531cdbf0a049f1581e4d3c63231ff5978445cb380aa6e7f8f1d256a29c";
51+ sha256 = "0iyi5w2h42bpssqj52ixm2kxp56yxfxdacb6xv5r24yv3hmwd4yn";
4452 };
4553
46− # see https://github.com/nipy/nipype/issues/2240
47− patches = [ ./prov-version.patch ];
54+ patches = [ ./move-uneeded-requires.patch ];
4855
4956 postPatch = ''
5057 substituteInPlace nipype/interfaces/base/tests/test_core.py \
@@ -57,6 +64,7 @@ buildPythonPackage rec {
5764 funcsigs
5865 future
5966 networkx
67+ neurdflib
6068 nibabel
6169 numpy
6270 packaging
@@ -72,12 +80,24 @@ buildPythonPackage rec {
7280 futures
7381 ];
7482
75− checkInputs = [ pytest mock pytestcov pytest_xdist pytest-forked codecov which glibcLocales ];
83+ checkInputs = [
84+ codecov
85+ glibcLocales
86+ mock
87+ pytest
88+ pytest-forked
89+ pytest_xdist
90+ pytestcov
91+ which
92+ ];
7693
7794 checkPhase = ''
78− LC_ALL="en_US.UTF-8" py.test -v --doctest-modules nipype
95+ LC_ALL="en_US.UTF-8" pytest -v --doctest-modules nipype
7996 '';
8097
98+ # See: https://github.com/nipy/nipype/issues/2839
99+ doCheck = false;
100+
81101 meta = with stdenv.lib; {
82102 homepage = http://nipy.org/nipype/;
83103 description = "Neuroimaging in Python: Pipelines and Interfaces";
pkgs/development/python-modules/nipype/move-uneeded-requires.patchnew file+31
@@ -0,0 +1,31 @@
1+diff --git a/nipype/info.py b/nipype/info.py
2+index c6503ac..4379643 100644
3+--- a/nipype/info.py
4++++ b/nipype/info.py
5+@@ -147,9 +147,6 @@ REQUIRES = [
6+ 'neurdflib',
7+ 'click>=%s' % CLICK_MIN_VERSION,
8+ 'funcsigs',
9+- 'pytest>=%s' % PYTEST_MIN_VERSION,
10+- 'pytest-xdist',
11+- 'mock',
12+ 'pydotplus',
13+ 'pydot>=%s' % PYDOT_MIN_VERSION,
14+ 'packaging',
15+@@ -159,7 +156,15 @@ REQUIRES = [
16+ if sys.version_info <= (3, 4):
17+ REQUIRES.append('configparser')
18+
19+-TESTS_REQUIRES = ['pytest-cov', 'codecov', 'pytest-env', 'coverage<5']
20++TESTS_REQUIRES = [
21++ 'pytest>=%s' % PYTEST_MIN_VERSION,
22++ 'pytest-xdist',
23++ 'mock',
24++ 'pytest-cov',
25++ 'codecov',
26++ 'pytest-env',
27++ 'coverage<5'
28++]
29+
30+ EXTRA_REQUIRES = {
31+ 'doc': ['Sphinx>=1.4', 'numpydoc', 'matplotlib', 'pydotplus', 'pydot>=1.2.3'],
pkgs/development/python-modules/nipype/neurdflib.nixnew file+38
@@ -0,0 +1,38 @@
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.0.post1";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "1qgmprixqxycxpjk9wjdmjykma14qqa2wcbx4nsldxi0ga7i7vv5";
19+ };
20+
21+ propagatedBuildInputs = [ isodate html5lib SPARQLWrapper ];
22+
23+ checkInputs = [ 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+}
pkgs/development/python-modules/nipype/prov-version.patchdeleted−21
@@ -1,21 +0,0 @@
1−diff --git a/nipype/info.py b/nipype/info.py
2−index 1daa382e2..da338d0ea 100644
3−--- a/nipype/info.py
4−+++ b/nipype/info.py
5−@@ -108,7 +108,6 @@ DATEUTIL_MIN_VERSION = '2.2'
6− PYTEST_MIN_VERSION = '3.0'
7− FUTURE_MIN_VERSION = '0.16.0'
8− SIMPLEJSON_MIN_VERSION = '3.8.0'
9−-PROV_VERSION = '1.5.0'
10− CLICK_MIN_VERSION = '6.6.0'
11− PYDOT_MIN_VERSION = '1.2.3'
12−
13−@@ -140,7 +139,7 @@ REQUIRES = [
14− 'traits>=%s' % TRAITS_MIN_VERSION,
15− 'future>=%s' % FUTURE_MIN_VERSION,
16− 'simplejson>=%s' % SIMPLEJSON_MIN_VERSION,
17−- 'prov==%s' % PROV_VERSION,
18−+ 'prov<2',
19− 'click>=%s' % CLICK_MIN_VERSION,
20− 'funcsigs',
21− 'pytest>=%s' % PYTEST_MIN_VERSION,
pkgs/development/python-modules/xvfbwrapper/default.nix+3
@@ -15,6 +15,9 @@ buildPythonPackage rec {
1515 };
1616 propagatedBuildInputs = [ xorgserver ];
1717
18+ # See: https://github.com/cgoldberg/xvfbwrapper/issues/30
19+ doCheck = false;
20+
1821 checkInputs = [ mock ];
1922
2023 meta = with stdenv.lib; {