2021-06-21 11:00:24 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-22 13:36:41 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
2021-06-21 11:00:24 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
psutil,
|
2022-01-12 18:06:25 +00:00
|
|
|
pythonOlder,
|
2021-06-21 11:00:24 +00:00
|
|
|
}:
|
2018-03-31 10:59:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "billiard";
|
2024-09-21 14:51:47 +00:00
|
|
|
version = "4.2.1";
|
2024-09-22 13:36:41 +00:00
|
|
|
pyproject = true;
|
2022-01-12 18:06:25 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-03-31 10:59:02 +00:00
|
|
|
|
2024-09-22 13:36:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "celery";
|
|
|
|
repo = "billiard";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-9LuAlIn6hNiZGvWuaaDQxx9g0aBVF6Z2krxEOrssqRs=";
|
2018-03-31 10:59:02 +00:00
|
|
|
};
|
|
|
|
|
2024-09-22 13:36:41 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-21 11:00:24 +00:00
|
|
|
psutil
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-03-31 10:59:02 +00:00
|
|
|
|
2022-01-12 18:06:25 +00:00
|
|
|
pythonImportsCheck = [ "billiard" ];
|
|
|
|
|
2024-11-20 16:44:53 +00:00
|
|
|
disabledTests = [
|
|
|
|
# time sensitive
|
|
|
|
"test_on_ready_counter_is_synchronized"
|
|
|
|
];
|
|
|
|
|
2024-09-22 13:39:46 +00:00
|
|
|
meta = {
|
2018-03-31 10:59:02 +00:00
|
|
|
description = "Python multiprocessing fork with improvements and bugfixes";
|
2022-01-12 18:06:25 +00:00
|
|
|
homepage = "https://github.com/celery/billiard";
|
2023-02-28 17:04:57 +00:00
|
|
|
changelog = "https://github.com/celery/billiard/blob/v${version}/CHANGES.txt";
|
2024-09-22 13:39:46 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
2018-03-31 10:59:02 +00:00
|
|
|
};
|
|
|
|
}
|