nixpkgs/pkgs/development/python-modules/pika/default.nix

36 lines
702 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, nose
, mock
, pyyaml
, unittest2
, pyev
, twisted
, tornado
}:
buildPythonPackage rec {
pname = "pika";
2018-11-04 10:35:09 +00:00
version = "0.12.0";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:09 +00:00
sha256 = "306145b8683e016d81aea996bcaefee648483fc5a9eb4694bb488f54df54a751";
};
# 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;
};
}