depot/third_party/nixpkgs/pkgs/development/python-modules/aio-pika/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

78 lines
1.6 KiB
Nix

{
lib,
aiomisc-pytest,
aiormq,
buildPythonPackage,
docker,
fetchFromGitHub,
pamqp,
poetry-core,
pytestCheckHook,
pythonOlder,
shortuuid,
testcontainers,
wrapt,
yarl,
}:
buildPythonPackage rec {
pname = "aio-pika";
version = "9.4.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mosquito";
repo = "aio-pika";
rev = "refs/tags/${version}";
hash = "sha256-Juzbn6A8IIdbtlN3cyT7UBb9fMpEgEgg0VE8GJCnGW4=";
};
build-system = [ poetry-core ];
dependencies = [
aiormq
yarl
];
nativeCheckInputs = [
aiomisc-pytest
docker
pamqp
pytestCheckHook
shortuuid
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"
];
disabledTestPaths = [
# Tests attempt to connect to a RabbitMQ server
"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"
];
pythonImportsCheck = [ "aio_pika" ];
meta = with lib; {
description = "AMQP 0.9 client designed for asyncio and humans";
homepage = "https://github.com/mosquito/aio-pika";
changelog = "https://github.com/mosquito/aio-pika/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ emilytrau ];
};
}