mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-28 21:15:57 +00:00
Diff: https://github.com/mosquito/aio-pika/compare/9.5.8...9.6.2 Changelog: https://github.com/mosquito/aio-pika/blob/9.6.2/CHANGELOG.md
48 lines
1011 B
Nix
48 lines
1011 B
Nix
{
|
|
lib,
|
|
aiormq,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
uv-build,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aio-pika";
|
|
version = "9.6.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mosquito";
|
|
repo = "aio-pika";
|
|
tag = version;
|
|
hash = "sha256-N5MjFIolMRTTn4aV1NskBwonB/8FSuEZETumUrAa02Y=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "uv_build>=0.9.26,<0.10.0" uv_build
|
|
'';
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
dependencies = [
|
|
aiormq
|
|
yarl
|
|
];
|
|
|
|
# Tests require running a RabbitMQ server.
|
|
# They rely on having AMQP_URL set or running Docker.
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|