Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ lib, buildPythonPackage, fetchPypi 2, amqp 3, botocore 4, case 5, Pyro4 6, pytest 7, pytz 8, sqlalchemy 9, importlib-metadata 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "kombu"; 15 version = "4.6.11"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "ca1b45faac8c0b18493d02a8571792f3c40291cf2bcf1f55afed3d8f3aa7ba74"; 20 }; 21 22 postPatch = '' 23 substituteInPlace requirements/test.txt \ 24 --replace "pytest-sugar" "" 25 substituteInPlace requirements/default.txt \ 26 --replace "amqp==2.5.1" "amqp~=2.5" 27 ''; 28 29 propagatedBuildInputs = [ 30 amqp 31 ] ++ lib.optionals (pythonOlder "3.8") [ 32 importlib-metadata 33 ]; 34 35 checkInputs = [ botocore pytest case pytz Pyro4 sqlalchemy ]; 36 # test_redis requires fakeredis, which isn't trivial to package 37 checkPhase = '' 38 pytest --ignore t/unit/transport/test_redis.py 39 ''; 40 41 meta = with lib; { 42 description = "Messaging library for Python"; 43 homepage = "https://github.com/celery/kombu"; 44 license = licenses.bsd3; 45 }; 46}