depot/third_party/nixpkgs/pkgs/development/python-modules/amqplib/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
620 B
Nix

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