2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-09-19 14:19:46 +00:00
|
|
|
stdenv,
|
2024-06-05 15:53:02 +00:00
|
|
|
billiard,
|
2024-09-19 14:19:46 +00:00
|
|
|
buildPythonPackage,
|
2024-06-05 15:53:02 +00:00
|
|
|
click-didyoumean,
|
|
|
|
click-plugins,
|
2024-09-19 14:19:46 +00:00
|
|
|
click-repl,
|
|
|
|
click,
|
|
|
|
fetchPypi,
|
2024-06-05 15:53:02 +00:00
|
|
|
google-cloud-storage,
|
2024-09-19 14:19:46 +00:00
|
|
|
kombu,
|
2024-06-05 15:53:02 +00:00
|
|
|
moto,
|
|
|
|
msgpack,
|
2024-09-19 14:19:46 +00:00
|
|
|
nixosTests,
|
2024-06-05 15:53:02 +00:00
|
|
|
pymongo,
|
2024-09-19 14:19:46 +00:00
|
|
|
redis,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest-celery,
|
|
|
|
pytest-click,
|
|
|
|
pytest-subtests,
|
|
|
|
pytest-timeout,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
setuptools,
|
|
|
|
tzdata,
|
|
|
|
vine,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "celery";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "5.4.0";
|
|
|
|
pyproject = true;
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-UEoZFA6NMCnVrK2IMwxUHUw/ZMeJ2F+UdWdi2Lyn5wY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2021-12-24 04:21:11 +00:00
|
|
|
billiard
|
|
|
|
click
|
|
|
|
click-didyoumean
|
|
|
|
click-plugins
|
|
|
|
click-repl
|
|
|
|
kombu
|
2023-07-15 17:15:38 +00:00
|
|
|
python-dateutil
|
|
|
|
tzdata
|
2021-12-24 04:21:11 +00:00
|
|
|
vine
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-05-15 15:35:15 +00:00
|
|
|
gcs = [ google-cloud-storage ];
|
|
|
|
mongodb = [ pymongo ];
|
|
|
|
msgpack = [ msgpack ];
|
|
|
|
yaml = [ pyyaml ];
|
2024-09-19 14:19:46 +00:00
|
|
|
redis = [ redis ];
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
moto
|
|
|
|
pytest-celery
|
|
|
|
pytest-click
|
|
|
|
pytest-subtests
|
|
|
|
pytest-timeout
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
2024-10-04 16:56:33 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# test_eventlet touches network
|
|
|
|
"t/unit/concurrency/test_eventlet.py"
|
|
|
|
# test_multi tries to create directories under /var
|
|
|
|
"t/unit/bin/test_multi.py"
|
|
|
|
"t/unit/apps/test_multi.py"
|
2024-09-19 14:19:46 +00:00
|
|
|
# Test requires moto<5
|
2024-04-21 15:54:59 +00:00
|
|
|
"t/unit/backends/test_s3.py"
|
2021-12-24 04:21:11 +00:00
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTests =
|
|
|
|
[
|
|
|
|
"msgpack"
|
|
|
|
"test_check_privileges_no_fchown"
|
|
|
|
# seems to only fail on higher core counts
|
|
|
|
# AssertionError: assert 3 == 0
|
|
|
|
"test_setup_security_disabled_serializers"
|
2024-09-19 14:19:46 +00:00
|
|
|
# Test is flaky, especially on hydra
|
|
|
|
"test_ready"
|
|
|
|
# Tests fail with pytest-xdist
|
2024-06-05 15:53:02 +00:00
|
|
|
"test_itercapture_limit"
|
|
|
|
"test_stamping_headers_in_options"
|
|
|
|
"test_stamping_with_replace"
|
|
|
|
]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-09-19 14:19:46 +00:00
|
|
|
# Too many open files on hydra
|
2024-06-05 15:53:02 +00:00
|
|
|
"test_cleanup"
|
|
|
|
"test_with_autoscaler_file_descriptor_safety"
|
|
|
|
"test_with_file_descriptor_safety"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "celery" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) sourcehut;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Distributed task queue";
|
2021-12-24 04:21:11 +00:00
|
|
|
homepage = "https://github.com/celery/celery/";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/celery/celery/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-09-19 14:19:46 +00:00
|
|
|
mainProgram = "celery";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|