1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 17:25:11 +00:00
nixpkgs/pkgs/development/python-modules/joblib/default.nix

38 lines
921 B
Nix
Raw Normal View History

2017-09-13 08:34:39 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, stdenv
2017-09-13 08:34:39 +01:00
, numpydoc
, pytest
, python-lz4
, setuptools
, sphinx
2017-09-13 08:34:39 +01:00
}:
buildPythonPackage rec {
pname = "joblib";
version = "0.14.0";
src = fetchPypi {
inherit pname version;
sha256 = "1zwkl6hgi8wbygcc6ql6yk1if665hwk43sa9shglb2afrfm5gk3g";
2017-09-13 08:34:39 +01:00
};
checkInputs = [ sphinx numpydoc pytest ];
propagatedBuildInputs = [ python-lz4 setuptools ];
2017-09-13 08:34:39 +01:00
# test_disk_used is broken: https://github.com/joblib/joblib/issues/57
# test_dispatch_multiprocessing is broken only on Darwin.
checkPhase = ''
py.test -k 'not test_disk_used${lib.optionalString (stdenv.isDarwin) " and not test_dispatch_multiprocessing"}' joblib/test
2017-09-13 08:34:39 +01:00
'';
meta = {
description = "Lightweight pipelining: using Python functions as pipeline jobs";
2018-06-27 21:12:57 +01:00
homepage = https://pythonhosted.org/joblib/;
2017-09-13 08:34:39 +01:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ costrouc ];
2017-09-13 08:34:39 +01:00
};
}