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