2019-09-13 21:03:18 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, libredirect
|
2020-07-15 15:13:44 +01:00
|
|
|
, case, pytest, boto3, moto, kombu, billiard, pytz, future, vine
|
2018-03-28 19:55:39 +01:00
|
|
|
}:
|
|
|
|
|
2019-01-18 01:35:48 +00:00
|
|
|
buildPythonPackage rec {
|
2018-01-09 10:34:35 +00:00
|
|
|
pname = "celery";
|
2020-08-16 18:30:54 +01:00
|
|
|
version = "4.4.7";
|
2018-01-09 10:34:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:30:54 +01:00
|
|
|
sha256 = "d220b13a8ed57c78149acf82c006785356071844afe0b27012a4991d44026f9f";
|
2018-01-09 10:34:35 +00:00
|
|
|
};
|
|
|
|
|
2019-03-03 23:20:00 +00:00
|
|
|
postPatch = ''
|
2020-06-03 06:51:16 +01:00
|
|
|
substituteInPlace requirements/default.txt \
|
|
|
|
--replace "kombu>=4.6.10,<4.7" "kombu"
|
2019-03-03 23:20:00 +00:00
|
|
|
substituteInPlace requirements/test.txt \
|
2019-05-12 19:31:45 +01:00
|
|
|
--replace "moto==1.3.7" moto \
|
2019-03-03 23:20:00 +00:00
|
|
|
--replace "pytest>=4.3.1,<4.4.0" pytest
|
|
|
|
'';
|
|
|
|
|
2019-09-13 21:03:18 +01: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 06:51:16 +01:00
|
|
|
# test_multi tries to create directories under /var
|
2019-09-13 21:03:18 +01:00
|
|
|
checkPhase = ''
|
2020-06-03 06:51:16 +01: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 06:51:16 +01: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-02-20 16:31:19 +00:00
|
|
|
checkInputs = [ case pytest boto3 moto ];
|
2020-07-15 15:13:44 +01:00
|
|
|
propagatedBuildInputs = [ kombu billiard pytz future vine ];
|
2018-01-09 10:34:35 +00:00
|
|
|
|
2019-09-13 21:03:18 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/celery/celery/";
|
2018-01-09 10:34:35 +00:00
|
|
|
description = "Distributed task queue";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|