1{ lib, buildPythonPackage, fetchPypi, libredirect
2, case, pytest, boto3, moto, kombu, billiard, pytz, anyjson, amqp, eventlet
3}:
4
5buildPythonPackage rec {
6 pname = "celery";
7 version = "4.3.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "4c4532aa683f170f40bd76f928b70bc06ff171a959e06e71bf35f2f9d6031ef9";
12 };
13
14 postPatch = ''
15 substituteInPlace requirements/test.txt \
16 --replace "moto==1.3.7" moto \
17 --replace "pytest>=4.3.1,<4.4.0" pytest
18 '';
19
20 # ignore test that's incompatible with pytest5
21 # test_eventlet touches network
22 checkPhase = ''
23 pytest -k 'not restore_current_app_fallback' \
24 --ignore=t/unit/concurrency/test_eventlet.py
25 '';
26
27 checkInputs = [ case pytest boto3 moto ];
28 propagatedBuildInputs = [ kombu billiard pytz anyjson amqp eventlet ];
29
30 meta = with lib; {
31 homepage = https://github.com/celery/celery/;
32 description = "Distributed task queue";
33 license = licenses.bsd3;
34 };
35}