2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiomisc-pytest,
|
|
|
|
aiormq,
|
|
|
|
buildPythonPackage,
|
|
|
|
docker,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pamqp,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
shortuuid,
|
|
|
|
testcontainers,
|
|
|
|
wrapt,
|
|
|
|
yarl,
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aio-pika";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "9.4.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mosquito";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "aio-pika";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-aRXYFW4fl3iXH3bwP30+TllRm4BkIUcGMX/lNfhiqjo=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-02-09 11:40:11 +00:00
|
|
|
aiormq
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
aiomisc-pytest
|
2024-04-21 15:54:59 +00:00
|
|
|
docker
|
2023-04-29 16:46:19 +00:00
|
|
|
pamqp
|
2023-02-09 11:40:11 +00:00
|
|
|
pytestCheckHook
|
|
|
|
shortuuid
|
2024-04-21 15:54:59 +00:00
|
|
|
testcontainers
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests attempt to connect to a RabbitMQ server
|
|
|
|
"test_connection_interleave"
|
|
|
|
"test_connection_happy_eyeballs_delay"
|
|
|
|
"test_robust_connection_interleave"
|
|
|
|
"test_robust_connection_happy_eyeballs_delay"
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
disabledTestPaths = [
|
2023-03-04 12:14:45 +00:00
|
|
|
# Tests attempt to connect to a RabbitMQ server
|
2023-02-09 11:40:11 +00:00
|
|
|
"tests/test_amqp.py"
|
|
|
|
"tests/test_amqp_robust.py"
|
|
|
|
"tests/test_amqp_robust_proxy.py"
|
|
|
|
"tests/test_amqps.py"
|
|
|
|
"tests/test_master.py"
|
|
|
|
"tests/test_memory_leak.py"
|
|
|
|
"tests/test_rpc.py"
|
|
|
|
"tests/test_types.py"
|
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "aio_pika" ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "AMQP 0.9 client designed for asyncio and humans";
|
|
|
|
homepage = "https://github.com/mosquito/aio-pika";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/mosquito/aio-pika/blob/${version}/CHANGELOG.md";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
|
|
};
|
|
|
|
}
|