File tree 2 files changed +37
-25
lines changed
development/python-modules/joblib
2 files changed +37
-25
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -7896,31 +7896,7 @@ in {
7896
7896
};
7897
7897
};
7898
7898
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 { };
7924
7900
7925
7901
safe = buildPythonPackage rec {
7926
7902
version = "0.4";
You can’t perform that action at this time.
0 commit comments