Files
nixpkgs/pkgs/development/python-modules/joblib/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

63 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
stdenv,
# build-system
setuptools,
# propagates (optional, but unspecified)
# https://github.com/joblib/joblib#dependencies
lz4,
psutil,
# tests
pytestCheckHook,
threadpoolctl,
}:
buildPythonPackage rec {
pname = "joblib";
version = "1.5.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-P6pcOQVLLwPKVH2psvUv3mfAYkDDGFPzBq6pfxNke1U=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
lz4
psutil
];
nativeCheckInputs = [
pytestCheckHook
threadpoolctl
];
enabledTestPaths = [ "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
"test_memory" # tests - and the module itself - assume strictatime mount for build directory
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin.
];
meta = {
changelog = "https://github.com/joblib/joblib/releases/tag/${version}";
description = "Lightweight pipelining: using Python functions as pipeline jobs";
homepage = "https://joblib.readthedocs.io/";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}