Files
nixpkgs/pkgs/development/python-modules/aio-pika/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

76 lines
1.5 KiB
Nix

{
lib,
aiomisc-pytest,
aiormq,
buildPythonPackage,
docker,
fetchFromGitHub,
pamqp,
poetry-core,
pytestCheckHook,
shortuuid,
testcontainers,
wrapt,
yarl,
}:
buildPythonPackage rec {
pname = "aio-pika";
version = "9.5.8";
pyproject = true;
src = fetchFromGitHub {
owner = "mosquito";
repo = "aio-pika";
tag = version;
hash = "sha256-0jVxgU+r/d2n4YO5/YAZrZUWDCAlZldBshCGpcEV/sQ=";
};
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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ emilytrau ];
};
}