about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python3pika/default.nix
blob: 4f75acff02ec4ff41e5ce5dd1098fff09cc09826 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, nose
, mock
, pyyaml
, unittest2
}:

buildPythonPackage rec {
  pname = "python3-pika";
  version = "0.9.14";
  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1c3hifwvn04kvlja88iawf0awyz726jynwnpcb6gn7376b4nfch7";
  };

  # Unit tests adds dependencies on pyev, tornado and twisted (and twisted is disabled for Python 3)
  doCheck = false;

  buildInputs = [ nose mock pyyaml ];
  propagatedBuildInputs = [ unittest2 ];

  meta = with stdenv.lib; {
    homepage = https://pika.readthedocs.org/;
    description = "Pika Python AMQP Client Library";
    license = licenses.gpl2;
  };

}