2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2023-07-15 17:15:38 +00:00
|
|
|
, backports-zoneinfo
|
2021-12-24 04:21:11 +00:00
|
|
|
, billiard
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, case
|
|
|
|
, click
|
|
|
|
, click-didyoumean
|
|
|
|
, click-plugins
|
|
|
|
, click-repl
|
2022-01-13 20:06:32 +00:00
|
|
|
, dnspython
|
2021-12-24 04:21:11 +00:00
|
|
|
, fetchPypi
|
|
|
|
, kombu
|
|
|
|
, moto
|
|
|
|
, pymongo
|
|
|
|
, pytest-celery
|
2023-07-15 17:15:38 +00:00
|
|
|
, pytest-click
|
2021-12-24 04:21:11 +00:00
|
|
|
, pytest-subtests
|
|
|
|
, pytest-timeout
|
2024-02-07 01:22:34 +00:00
|
|
|
, pytest-xdist
|
2021-12-24 04:21:11 +00:00
|
|
|
, pytestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
, python-dateutil
|
2021-12-24 04:21:11 +00:00
|
|
|
, pythonOlder
|
2023-07-15 17:15:38 +00:00
|
|
|
, tzdata
|
2021-12-24 04:21:11 +00:00
|
|
|
, vine
|
2022-03-05 16:20:37 +00:00
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "celery";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "5.3.6";
|
2021-12-24 04:21:11 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-hwzHHXN8AgDDlykNcwNEzJkdE6BXU0NT0STJOAJnqrk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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
|
2023-07-15 17:15:38 +00:00
|
|
|
]
|
|
|
|
++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
backports-zoneinfo
|
2021-12-24 04:21:11 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-24 04:21:11 +00:00
|
|
|
boto3
|
|
|
|
case
|
2022-01-13 20:06:32 +00:00
|
|
|
dnspython
|
2021-12-24 04:21:11 +00:00
|
|
|
moto
|
|
|
|
pymongo
|
|
|
|
pytest-celery
|
2023-07-15 17:15:38 +00:00
|
|
|
pytest-click
|
2021-12-24 04:21:11 +00:00
|
|
|
pytest-subtests
|
|
|
|
pytest-timeout
|
2024-02-07 01:22:34 +00:00
|
|
|
pytest-xdist
|
2021-12-24 04:21:11 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
disabledTests = [
|
|
|
|
"msgpack"
|
|
|
|
"test_check_privileges_no_fchown"
|
2024-02-07 01:22:34 +00:00
|
|
|
# fails with pytest-xdist
|
|
|
|
"test_itercapture_limit"
|
|
|
|
"test_stamping_headers_in_options"
|
|
|
|
"test_stamping_with_replace"
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
# too many open files on hydra
|
|
|
|
"test_cleanup"
|
|
|
|
"test_with_autoscaler_file_descriptor_safety"
|
|
|
|
"test_with_file_descriptor_safety"
|
2021-12-24 04:21:11 +00:00
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|