nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 48 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchPypi, 6 pytestCheckHook, 7 pytest-rerunfailures, 8 vine, 9}: 10 11buildPythonPackage rec { 12 pname = "amqp"; 13 version = "5.3.1"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-zdwAxyVElSICO62Un3D/97SPCxredNFwpvEKsERzlDI="; 19 }; 20 21 propagatedBuildInputs = [ vine ]; 22 23 __darwinAllowLocalNetworking = true; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 pytest-rerunfailures 28 ]; 29 30 disabledTests = [ 31 # Requires network access 32 "test_rmq.py" 33 ] 34 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 35 # Requires network access but fails on macos only 36 "test_connection.py" 37 ]; 38 39 pythonImportsCheck = [ "amqp" ]; 40 41 meta = { 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 = lib.licenses.bsd3; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48}