1{ lib
2, aiomisc-pytest
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, pytestCheckHook
7, pamqp
8, yarl
9, setuptools
10, poetry-core
11, aiomisc
12}:
13
14buildPythonPackage rec {
15 pname = "aiormq";
16 version = "6.7.6";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "mosquito";
23 repo = pname;
24 rev = "refs/tags/${version}";
25 hash = "sha256-X5Uy1DGxvsyEFR1UgVYqxOX6mESLnNzQl7sVkvzjcw4=";
26 };
27
28 nativeBuildInputs = [
29 setuptools
30 poetry-core
31 ];
32
33 propagatedBuildInputs = [
34 pamqp
35 yarl
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 ];
41
42 checkInputs = [
43 aiomisc-pytest
44 ];
45
46 # Tests attempt to connect to a RabbitMQ server
47 disabledTestPaths = [
48 "tests/test_channel.py"
49 "tests/test_connection.py"
50 ];
51
52 pythonImportsCheck = [
53 "aiormq"
54 ];
55
56 meta = with lib; {
57 description = "AMQP 0.9.1 asynchronous client library";
58 homepage = "https://github.com/mosquito/aiormq";
59 changelog = "https://github.com/mosquito/aiormq/releases/tag/${version}";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ emilytrau ];
62 };
63}