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