Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.4 kB view raw
1{ lib, buildPythonPackage, fetchPypi, libredirect 2, case, pytest, boto3, moto, kombu, billiard, pytz, future, vine 3}: 4 5buildPythonPackage rec { 6 pname = "celery"; 7 version = "4.4.7"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "d220b13a8ed57c78149acf82c006785356071844afe0b27012a4991d44026f9f"; 12 }; 13 14 postPatch = '' 15 substituteInPlace requirements/default.txt \ 16 --replace "kombu>=4.6.10,<4.7" "kombu" 17 substituteInPlace requirements/test.txt \ 18 --replace "moto==1.3.7" moto \ 19 --replace "pytest>=4.3.1,<4.4.0" pytest 20 ''; 21 22 # ignore test that's incompatible with pytest5 23 # test_eventlet touches network 24 # test_mongodb requires pymongo 25 # test_multi tries to create directories under /var 26 checkPhase = '' 27 pytest -k 'not restore_current_app_fallback and not msgpack and not on_apply and not pytest' \ 28 --ignore=t/unit/contrib/test_pytest.py \ 29 --ignore=t/unit/concurrency/test_eventlet.py \ 30 --ignore=t/unit/bin/test_multi.py \ 31 --ignore=t/unit/apps/test_multi.py \ 32 --ignore=t/unit/backends/test_mongodb.py 33 ''; 34 35 checkInputs = [ case pytest boto3 moto ]; 36 propagatedBuildInputs = [ kombu billiard pytz future vine ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/celery/celery/"; 40 description = "Distributed task queue"; 41 license = licenses.bsd3; 42 }; 43}