2020-12-09 12:39:15 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-03-09 03:18:52 +00:00
|
|
|
, billiard, click, click-didyoumean, click-plugins, click-repl, kombu, pytz, vine
|
2020-12-09 12:39:15 +00:00
|
|
|
, boto3, case, moto, pytest, pytest-celery, pytest-subtests, pytest-timeout
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "celery";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "5.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "54436cd97b031bf2e08064223240e2a83d601d9414bcb1b702f94c6c33c29485";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements/test.txt \
|
2020-12-09 12:39:15 +00:00
|
|
|
--replace "moto==1.3.7" moto
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [ billiard click click-didyoumean click-plugins click-repl kombu pytz vine ];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
checkInputs = [ boto3 case moto pytest pytest-celery pytest-subtests pytest-timeout ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# ignore test that's incompatible with pytest5
|
|
|
|
# test_eventlet touches network
|
|
|
|
# test_mongodb requires pymongo
|
2020-06-18 07:06:33 +00:00
|
|
|
# test_multi tries to create directories under /var
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2020-06-18 07:06:33 +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 \
|
2020-04-24 23:36:52 +00:00
|
|
|
--ignore=t/unit/concurrency/test_eventlet.py \
|
2020-06-18 07:06:33 +00:00
|
|
|
--ignore=t/unit/bin/test_multi.py \
|
|
|
|
--ignore=t/unit/apps/test_multi.py \
|
2020-04-24 23:36:52 +00:00
|
|
|
--ignore=t/unit/backends/test_mongodb.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/celery/celery/";
|
|
|
|
description = "Distributed task queue";
|
|
|
|
license = licenses.bsd3;
|
2021-03-09 03:18:52 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|