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