nixpkgs-suyu/pkgs/development/python-modules/amqplib/default.nix

26 lines
618 B
Nix
Raw Normal View History

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