2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
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
|
2022-08-12 12:06:08 +00:00
|
|
|
, fetchpatch
|
2021-12-24 04:21:11 +00:00
|
|
|
, kombu
|
|
|
|
, moto
|
|
|
|
, pymongo
|
|
|
|
, pytest-celery
|
|
|
|
, pytest-subtests
|
|
|
|
, pytest-timeout
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, vine
|
2022-03-05 16:20:37 +00:00
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "celery";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "5.2.7";
|
2021-12-24 04:21:11 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-+vvYKTTTD4oAT4Ho96Bi4xQToj1ES+juMyZVORWVjG0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2023-01-20 10:41:00 +00:00
|
|
|
name = "billiard-4.0-compat.patch";
|
2022-08-12 12:06:08 +00:00
|
|
|
url = "https://github.com/celery/celery/commit/b260860988469ef8ad74f2d4225839c2fa91d590.patch";
|
|
|
|
hash = "sha256-NWB/UB0fE7A/vgMRYz6QGmqLmyN1ninAMyL4V2tpzto=";
|
|
|
|
})
|
2023-01-20 10:41:00 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "billiard-4.1-compat.patch";
|
|
|
|
url = "https://github.com/celery/celery/pull/7781/commits/879af6341974c3778077d8212d78f093b2d77a4f.patch";
|
|
|
|
hash = "sha256-+m8/YkeAPPjwm0WF7dw5XZzf7MImVBLXT0/FS+fk0FE=";
|
|
|
|
})
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements/default.txt \
|
|
|
|
--replace "billiard>=3.6.4.0,<4.0" "billiard>=3.6.4.0"
|
|
|
|
'';
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
billiard
|
|
|
|
click
|
|
|
|
click-didyoumean
|
|
|
|
click-plugins
|
|
|
|
click-repl
|
|
|
|
kombu
|
|
|
|
pytz
|
|
|
|
vine
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
boto3
|
|
|
|
case
|
2022-01-13 20:06:32 +00:00
|
|
|
dnspython
|
2021-12-24 04:21:11 +00:00
|
|
|
moto
|
|
|
|
pymongo
|
|
|
|
pytest-celery
|
|
|
|
pytest-subtests
|
|
|
|
pytest-timeout
|
|
|
|
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"
|
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/";
|
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
|
|
|
};
|
|
|
|
}
|