at 25.11-pre 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchPypi, 6 pytestCheckHook, 7 pytest-rerunfailures, 8 pythonOlder, 9 vine, 10}: 11 12buildPythonPackage rec { 13 pname = "amqp"; 14 version = "5.3.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-zdwAxyVElSICO62Un3D/97SPCxredNFwpvEKsERzlDI="; 22 }; 23 24 propagatedBuildInputs = [ vine ]; 25 26 __darwinAllowLocalNetworking = true; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 pytest-rerunfailures 31 ]; 32 33 disabledTests = 34 [ 35 # Requires network access 36 "test_rmq.py" 37 ] 38 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 39 # Requires network access but fails on macos only 40 "test_connection.py" 41 ]; 42 43 pythonImportsCheck = [ "amqp" ]; 44 45 meta = with lib; { 46 description = "Python client for the Advanced Message Queuing Procotol (AMQP). This is a fork of amqplib which is maintained by the Celery project"; 47 homepage = "https://github.com/celery/py-amqp"; 48 changelog = "https://github.com/celery/py-amqp/releases/tag/v${version}"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}