2018-10-26 03:33:56 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, pyyaml
|
|
|
|
, unittest2
|
|
|
|
, pyev
|
|
|
|
, twisted
|
|
|
|
, tornado
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pika";
|
2019-04-02 18:33:37 +02:00
|
|
|
version = "1.0.0";
|
2018-10-26 03:33:56 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-02 18:33:37 +02:00
|
|
|
sha256 = "119lpjzw8wd7c6ikn35c0pvr3zzfy20rklpxdkcmp12wnf9i597v";
|
2018-10-26 03:33:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|