2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiomisc-pytest,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
pamqp,
|
|
|
|
yarl,
|
|
|
|
poetry-core,
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiormq";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "6.8.0";
|
|
|
|
pyproject = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mosquito";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "aiormq";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-XD1g4JXQJlJyXuZbo4hYW7cwQhy8+p4/inwNw2WOD9Y=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "pamqp" ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pamqp
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkInputs = [ aiomisc-pytest ];
|
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
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|