2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-08-10 07:59:29 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2024-01-13 08:15:51 +00:00
|
|
|
, fetchpatch
|
|
|
|
, pythonAtLeast
|
2020-04-24 23:36:52 +00:00
|
|
|
, stdenv
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# build-system
|
2020-04-24 23:36:52 +00:00
|
|
|
, setuptools
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# propagates (optional, but unspecified)
|
|
|
|
# https://github.com/joblib/joblib#dependencies
|
|
|
|
, lz4
|
2022-10-06 18:32:54 +00:00
|
|
|
, psutil
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytestCheckHook
|
|
|
|
, threadpoolctl
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "joblib";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.3.2";
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-kvhl5iHhd4TnlVCAttBCSJ47jilJScxExurDBPWXcrE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "suppress-deprecation-warnings-with-python312.patch";
|
|
|
|
url = "https://github.com/joblib/joblib/commit/05caf0772d605799e5d2337018fd32ac829b37aa.patch";
|
|
|
|
hash = "sha256-bfqxCLFkCnuWMIkIbcjh+nCTv38A8jxvyCHeJPxoZwg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lz4
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
threadpoolctl
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"joblib/test"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
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
|
2022-04-15 01:41:22 +00:00
|
|
|
"test_nested_parallel_warnings" # tests is flaky under load
|
2020-12-07 07:45:13 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
"test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin.
|
2024-01-13 08:15:51 +00:00
|
|
|
] ++ lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
# deprecation warnings with python3.12 https://github.com/joblib/joblib/issues/1478
|
|
|
|
"test_main_thread_renamed_no_warning"
|
|
|
|
"test_background_thread_parallelism"
|
2020-12-07 07:45:13 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
meta = with lib; {
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/joblib/joblib/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Lightweight pipelining: using Python functions as pipeline jobs";
|
|
|
|
homepage = "https://joblib.readthedocs.io/";
|
2020-12-07 07:45:13 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|