2018-10-10 21:32:13 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, python }:
|
2017-07-28 06:25:36 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "amqplib";
|
2018-10-10 21:32:13 +00:00
|
|
|
version = "1.0.2";
|
2017-07-28 06:25:36 +00:00
|
|
|
|
2018-10-10 21:32:13 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "tgz";
|
|
|
|
sha256 = "843d69b681a60afd21fbf50f310404ec67fcdf9d13dfcf6e9d41f3b456217e5b";
|
2017-07-28 06:25:36 +00:00
|
|
|
};
|
|
|
|
|
2018-10-10 21:32:13 +00:00
|
|
|
# testing assumes network connection
|
2017-07-28 06:25:36 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-10 21:32:13 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests/client_0_8/run_all.py
|
|
|
|
'';
|
|
|
|
|
2017-07-28 06:25:36 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/barryp/py-amqplib";
|
2017-07-28 06:25:36 +00:00
|
|
|
description = "Python client for the Advanced Message Queuing Procotol (AMQP)";
|
2018-08-03 12:19:43 +00:00
|
|
|
license = licenses.lgpl21;
|
2017-07-28 06:25:36 +00:00
|
|
|
};
|
|
|
|
}
|