about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aioamqp/default.nix
blob: 4beaeb6ce2c33d6f2afbc780561a057a6f02dba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pamqp,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "aioamqp";
  version = "0.15.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Polyconseil";
    repo = "aioamqp";
    rev = "aioamqp-${version}";
    hash = "sha256-fssPknJn1tLtzb+2SFyZjfdhUdD8jqkwlInoi5uaplk=";
  };

  build-system = [ setuptools ];

  dependencies = [ pamqp ];

  # Tests assume rabbitmq server running
  doCheck = false;

  pythonImportsCheck = [ "aioamqp" ];

  meta = with lib; {
    description = "AMQP implementation using asyncio";
    homepage = "https://github.com/polyconseil/aioamqp";
    license = licenses.bsd3;
    maintainers = [ ];
  };
}