Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 36 lines 915 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, nose 5, sphinx 6, numpydoc 7, isPy3k 8, stdenv 9}: 10 11 12buildPythonPackage 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}