Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 case, 5 fetchPypi, 6 pytestCheckHook, 7 pytest-rerunfailures, 8 pythonOlder, 9 vine, 10}: 11 12buildPythonPackage rec { 13 pname = "amqp"; 14 version = "5.2.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-oez/QlrQY61CpIbJAoB9FIIxFIHIrZWnJpSyl1519/0="; 22 }; 23 24 propagatedBuildInputs = [ vine ]; 25 26 __darwinAllowLocalNetworking = true; 27 28 nativeCheckInputs = [ 29 case 30 pytestCheckHook 31 pytest-rerunfailures 32 ]; 33 34 disabledTests = [ 35 # Requires network access 36 "test_rmq.py" 37 ]; 38 39 pythonImportsCheck = [ "amqp" ]; 40 41 meta = with lib; { 42 description = "Python client for the Advanced Message Queuing Procotol (AMQP). This is a fork of amqplib which is maintained by the Celery project"; 43 homepage = "https://github.com/celery/py-amqp"; 44 changelog = "https://github.com/celery/py-amqp/releases/tag/v${version}"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}