2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
2023-04-29 16:46:19 +00:00
|
|
|
, aiomisc-pytest
|
2023-02-09 11:40:11 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, pamqp
|
|
|
|
, yarl
|
|
|
|
, setuptools
|
|
|
|
, poetry-core
|
|
|
|
, aiomisc
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiormq";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "6.7.6";
|
2023-02-09 11:40:11 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mosquito";
|
|
|
|
repo = pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-X5Uy1DGxvsyEFR1UgVYqxOX6mESLnNzQl7sVkvzjcw4=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pamqp
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
aiomisc-pytest
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
# Tests attempt to connect to a RabbitMQ server
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_channel.py"
|
|
|
|
"tests/test_connection.py"
|
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiormq"
|
|
|
|
];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "AMQP 0.9.1 asynchronous client library";
|
|
|
|
homepage = "https://github.com/mosquito/aiormq";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/mosquito/aiormq/releases/tag/${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
|
|
};
|
|
|
|
}
|