about summary refs log tree commit diff
path: root/pkgs/development/python-modules/amqplib/default.nix
blob: 60c66e24149165c62d2e1fc5c59681a3139bb3ea (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  python,
}:

buildPythonPackage rec {
  pname = "amqplib";
  version = "1.0.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    extension = "tgz";
    sha256 = "843d69b681a60afd21fbf50f310404ec67fcdf9d13dfcf6e9d41f3b456217e5b";
  };

  # testing assumes network connection
  doCheck = false;

  checkPhase = ''
    ${python.interpreter} tests/client_0_8/run_all.py
  '';

  meta = with lib; {
    homepage = "https://github.com/barryp/py-amqplib";
    description = "Python client for the Advanced Message Queuing Procotol (AMQP)";
    license = licenses.lgpl21;
  };
}