Skip to content

Commit e9b34b1

Browse files
authored
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: nipy/nipype#2701 Also had to disable tests. See: nipy/nipype#2839 * pythonPackages.xvfbwrapper: disable tests See: cgoldberg/xvfbwrapper#30
2 parents 9b17ee6 + 9257887 commit e9b34b1

File tree

5 files changed

+98
-27
lines changed

5 files changed

+98
-27
lines changed

pkgs/development/python-modules/nipype/default.nix

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,28 @@
3030
, which
3131
, bash
3232
, glibcLocales
33+
, callPackage
3334
}:
3435

3536
assert !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+
3745
buildPythonPackage 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";
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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'],
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.patch

Lines changed: 0 additions & 21 deletions
This file was deleted.

pkgs/development/python-modules/xvfbwrapper/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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; {

0 commit comments

Comments
 (0)