2020-12-07 10:52:35 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-03-07 01:58:56 +00:00
|
|
|
, billiard, click, click-didyoumean, click-plugins, click-repl, kombu, pytz, vine
|
2020-12-07 10:52:35 +00:00
|
|
|
, boto3, case, moto, pytest, pytest-celery, pytest-subtests, pytest-timeout
|
2018-03-28 18:55:39 +00:00
|
|
|
}:
|
|
|
|
|
2019-01-18 01:35:48 +00:00
|
|
|
buildPythonPackage rec {
|
2018-01-09 10:34:35 +00:00
|
|
|
pname = "celery";
|
2021-08-13 16:55:15 +00:00
|
|
|
version = "5.1.2";
|
2018-01-09 10:34:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-13 16:55:15 +00:00
|
|
|
sha256 = "8d9a3de9162965e97f8e8cc584c67aad83b3f7a267584fa47701ed11c3e0d4b0";
|
2018-01-09 10:34:35 +00:00
|
|
|
};
|
|
|
|
|
2021-07-06 06:20:49 +00:00
|
|
|
# click is only used for the repl, in most cases this shouldn't impact
|
|
|
|
# downstream packages
|
2019-03-03 23:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements/test.txt \
|
2020-12-07 10:52:35 +00:00
|
|
|
--replace "moto==1.3.7" moto
|
2021-07-06 06:20:49 +00:00
|
|
|
substituteInPlace requirements/default.txt \
|
|
|
|
--replace "click>=7.0,<8.0" click
|
2019-03-03 23:20:00 +00:00
|
|
|
'';
|
|
|
|
|
2021-03-07 01:58:56 +00:00
|
|
|
propagatedBuildInputs = [ billiard click click-didyoumean click-plugins click-repl kombu pytz vine ];
|
2020-12-07 10:52:35 +00:00
|
|
|
|
|
|
|
checkInputs = [ boto3 case moto pytest pytest-celery pytest-subtests pytest-timeout ];
|
|
|
|
|
2019-09-13 20:03:18 +00:00
|
|
|
# ignore test that's incompatible with pytest5
|
|
|
|
# test_eventlet touches network
|
2019-12-22 19:34:42 +00:00
|
|
|
# test_mongodb requires pymongo
|
2020-06-03 05:51:16 +00:00
|
|
|
# test_multi tries to create directories under /var
|
2019-09-13 20:03:18 +00:00
|
|
|
checkPhase = ''
|
2020-06-03 05:51:16 +00:00
|
|
|
pytest -k 'not restore_current_app_fallback and not msgpack and not on_apply and not pytest' \
|
|
|
|
--ignore=t/unit/contrib/test_pytest.py \
|
2019-12-22 19:34:42 +00:00
|
|
|
--ignore=t/unit/concurrency/test_eventlet.py \
|
2020-06-03 05:51:16 +00:00
|
|
|
--ignore=t/unit/bin/test_multi.py \
|
|
|
|
--ignore=t/unit/apps/test_multi.py \
|
2019-12-22 19:34:42 +00:00
|
|
|
--ignore=t/unit/backends/test_mongodb.py
|
2018-01-09 10:34:35 +00:00
|
|
|
'';
|
|
|
|
|
2019-09-13 20:03:18 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/celery/celery/";
|
2018-01-09 10:34:35 +00:00
|
|
|
description = "Distributed task queue";
|
|
|
|
license = licenses.bsd3;
|
2021-03-07 01:58:56 +00:00
|
|
|
maintainers = [ ];
|
2018-01-09 10:34:35 +00:00
|
|
|
};
|
|
|
|
}
|