Skip to content

Commit 47dcf63

Browse files
committedSep 13, 2017
python.pkgs.joblib: move expression
1 parent d6dec0a commit 47dcf63

File tree

2 files changed

+37
-25
lines changed

2 files changed

+37
-25
lines changed
 

Diff for: ‎pkgs/development/python-modules/joblib/default.nix

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{ lib
2+
, buildPythonPackage
3+
, fetchPypi
4+
, nose
5+
, sphinx
6+
, numpydoc
7+
, isPy3k
8+
, stdenv
9+
}:
10+
11+
12+
buildPythonPackage rec {
13+
pname = "joblib";
14+
name = "${pname}-${version}";
15+
version = "0.10.3";
16+
src = fetchPypi {
17+
inherit pname version;
18+
sha256 = "29b2965a9efbc90a5fe66a389ae35ac5b5b0c1feabfc7cab7fd5d19f429a071d";
19+
};
20+
21+
checkInputs = [ nose sphinx numpydoc ];
22+
23+
# Failing test on Python 3.x and Darwin
24+
postPatch = '''' + lib.optionalString (isPy3k || stdenv.isDarwin) ''
25+
sed -i -e '70,84d' joblib/test/test_format_stack.py
26+
# test_nested_parallel_warnings: ValueError: Non-zero return code: -9.
27+
# Not sure why but it's nix-specific. Try removing for new joblib releases.
28+
rm joblib/test/test_parallel.py
29+
'';
30+
31+
meta = {
32+
description = "Lightweight pipelining: using Python functions as pipeline jobs";
33+
homepage = http://pythonhosted.org/joblib/;
34+
license = lib.licenses.bsd3;
35+
};
36+
}

Diff for: ‎pkgs/top-level/python-packages.nix

+1-25
Original file line numberDiff line numberDiff line change
@@ -7896,31 +7896,7 @@ in {
78967896
};
78977897
};
78987898

7899-
joblib = buildPythonPackage rec {
7900-
pname = "joblib";
7901-
name = "${pname}-${version}";
7902-
version = "0.10.3";
7903-
src = pkgs.fetchurl {
7904-
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
7905-
sha256 = "29b2965a9efbc90a5fe66a389ae35ac5b5b0c1feabfc7cab7fd5d19f429a071d";
7906-
};
7907-
7908-
buildInputs = with self; [ nose sphinx numpydoc ];
7909-
7910-
# Failing test on Python 3.x and Darwin
7911-
postPatch = '''' + optionalString (isPy3k || stdenv.isDarwin) ''
7912-
sed -i -e '70,84d' joblib/test/test_format_stack.py
7913-
# test_nested_parallel_warnings: ValueError: Non-zero return code: -9.
7914-
# Not sure why but it's nix-specific. Try removing for new joblib releases.
7915-
rm joblib/test/test_parallel.py
7916-
'';
7917-
7918-
meta = {
7919-
description = "Lightweight pipelining: using Python functions as pipeline jobs";
7920-
homepage = http://pythonhosted.org/joblib/;
7921-
license = licenses.bsd3;
7922-
};
7923-
};
7899+
joblib = callPackage ../development/python-modules/joblib { };
79247900

79257901
safe = buildPythonPackage rec {
79267902
version = "0.4";

0 commit comments

Comments
 (0)
Please sign in to comment.