2019-12-29 22:21:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pamqp
|
|
|
|
, pytest
|
|
|
|
, asynctest
|
|
|
|
, pyrabbit2
|
|
|
|
, isPy27
|
2017-08-31 19:57:13 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioamqp";
|
2019-12-29 22:21:08 +00:00
|
|
|
version = "0.14.0";
|
|
|
|
disabled = isPy27;
|
2017-08-31 19:57:13 +01:00
|
|
|
|
2019-12-29 22:21:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Polyconseil";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "1gpfsrc2vi6w33c9zsycd2qn589pr7a222rb41r85m915283zy48";
|
2017-08-31 19:57:13 +01:00
|
|
|
};
|
|
|
|
|
2019-12-29 22:21:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pamqp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
asynctest
|
|
|
|
pyrabbit2
|
|
|
|
];
|
2017-08-31 19:57:13 +01:00
|
|
|
|
2019-12-29 22:21:08 +00:00
|
|
|
# tests assume rabbitmq server running
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/polyconseil/aioamqp";
|
2019-12-29 22:21:08 +00:00
|
|
|
description = "AMQP implementation using asyncio";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
2017-08-31 19:57:13 +01:00
|
|
|
}
|