mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
0215034f25
when they already rely on SRI hashes.
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib
|
|
, pythonAtLeast
|
|
, pythonOlder
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, stdenv
|
|
, numpydoc
|
|
, pytestCheckHook
|
|
, lz4
|
|
, setuptools
|
|
, sphinx
|
|
, psutil
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
pname = "joblib";
|
|
version = "1.2.0";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-4c7kp55K8iiBFk8hjUMR9gB0GX+3B+CC6AO2H20TcBg=";
|
|
};
|
|
|
|
nativeCheckInputs = [ sphinx numpydoc pytestCheckHook psutil ];
|
|
propagatedBuildInputs = [ lz4 setuptools ];
|
|
|
|
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
|
|
"test_nested_parallel_warnings" # tests is flaky under load
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
"test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin.
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight pipelining: using Python functions as pipeline jobs";
|
|
homepage = "https://joblib.readthedocs.io/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|