nixpkgs/pkgs/development/python-modules/joblib/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2017-09-13 07:34:39 +00:00
{ lib
, pythonOlder
2017-09-13 07:34:39 +00:00
, buildPythonPackage
, fetchPypi
, stdenv
2017-09-13 07:34:39 +00:00
, numpydoc
2020-11-30 20:53:05 +00:00
, pytestCheckHook
, python-lz4
, setuptools
, sphinx
2017-09-13 07:34:39 +00:00
}:
buildPythonPackage rec {
pname = "joblib";
2021-03-24 09:28:15 +00:00
version = "1.0.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
2021-03-24 09:28:15 +00:00
sha256 = "9c17567692206d2f3fb9ecf5e991084254fe631665c450b443761c4186a613f7";
2017-09-13 07:34:39 +00:00
};
2020-11-30 20:53:05 +00:00
checkInputs = [ sphinx numpydoc pytestCheckHook ];
propagatedBuildInputs = [ python-lz4 setuptools ];
2017-09-13 07:34:39 +00:00
2020-11-30 20:53:05 +00:00
pytestFlagsArray = [ "joblib/test" ];
disabledTests = [
"test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57
"test_parallel_call_cached_function_defined_in_jupyter" # jupyter not available during tests
] ++ lib.optionals stdenv.isDarwin [
"test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin.
];
2017-09-13 07:34:39 +00:00
2020-11-30 20:53:05 +00:00
meta = with lib; {
2017-09-13 07:34:39 +00:00
description = "Lightweight pipelining: using Python functions as pipeline jobs";
homepage = "https://joblib.readthedocs.io/";
2020-11-30 20:53:05 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
2017-09-13 07:34:39 +00:00
};
}