nixpkgs/pkgs/development/python-modules/pika/default.nix
2019-04-18 12:42:41 +02:00

35 lines
701 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, nose
, mock
, pyyaml
, unittest2
, pyev
, twisted
, tornado
}:
buildPythonPackage rec {
pname = "pika";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "5ba83d3daffccb92788d24facdab62a3db6aa03b8a6d709b03dc792d35c0dfe8";
};
# Tests require twisted which is only availalble for python-2.x
doCheck = !isPy3k;
buildInputs = [ nose mock pyyaml unittest2 pyev ]
++ stdenv.lib.optionals (!isPy3k) [ twisted tornado ];
meta = with stdenv.lib; {
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
homepage = https://pika.readthedocs.org;
license = licenses.bsd3;
};
}