1{
2 lib,
3 aiomisc-pytest,
4 aiormq,
5 buildPythonPackage,
6 docker,
7 fetchFromGitHub,
8 pamqp,
9 poetry-core,
10 pytestCheckHook,
11 shortuuid,
12 testcontainers,
13 wrapt,
14 yarl,
15}:
16
17buildPythonPackage rec {
18 pname = "aio-pika";
19 version = "9.5.6";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "mosquito";
24 repo = "aio-pika";
25 tag = version;
26 hash = "sha256-VpZgAAAt9d0NxSgTGnyBg5fu5GcT3Tg0qOieX7KqmyM=";
27 };
28
29 build-system = [ poetry-core ];
30
31 dependencies = [
32 aiormq
33 yarl
34 ];
35
36 nativeCheckInputs = [
37 aiomisc-pytest
38 docker
39 pamqp
40 pytestCheckHook
41 shortuuid
42 testcontainers
43 wrapt
44 ];
45
46 disabledTests = [
47 # Tests attempt to connect to a RabbitMQ server
48 "test_connection_interleave"
49 "test_connection_happy_eyeballs_delay"
50 "test_robust_connection_interleave"
51 "test_robust_connection_happy_eyeballs_delay"
52 ];
53
54 disabledTestPaths = [
55 # Tests attempt to connect to a RabbitMQ server
56 "tests/test_amqp.py"
57 "tests/test_amqp_robust.py"
58 "tests/test_amqp_robust_proxy.py"
59 "tests/test_amqps.py"
60 "tests/test_master.py"
61 "tests/test_memory_leak.py"
62 "tests/test_rpc.py"
63 "tests/test_types.py"
64 ];
65
66 pythonImportsCheck = [ "aio_pika" ];
67
68 meta = with lib; {
69 description = "AMQP 0.9 client designed for asyncio and humans";
70 homepage = "https://github.com/mosquito/aio-pika";
71 changelog = "https://github.com/mosquito/aio-pika/blob/${version}/CHANGELOG.md";
72 license = licenses.asl20;
73 maintainers = with maintainers; [ emilytrau ];
74 };
75}