mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-12 08:13:34 +00:00
Diff: https://github.com/mosquito/aiormq/compare/6.9.2...9.6.4 Changelog: https://github.com/mosquito/aiormq/releases/tag/9.6.4
50 lines
1014 B
Nix
50 lines
1014 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pamqp,
|
|
uv-build,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiormq";
|
|
version = "9.6.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mosquito";
|
|
repo = "aiormq";
|
|
tag = version;
|
|
hash = "sha256-GFeOwjSQ1+nxP9hgNoELoEInTmhhO0JnNeoe2qfWNcg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "uv_build>=0.10.4,<0.11.0" uv_build
|
|
'';
|
|
|
|
pythonRelaxDeps = [ "pamqp" ];
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
dependencies = [
|
|
pamqp
|
|
yarl
|
|
];
|
|
|
|
# Tests require running a RabbitMQ server.
|
|
# They rely on having AMQP_URL set or running Docker.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aiormq" ];
|
|
|
|
meta = {
|
|
description = "AMQP 0.9.1 asynchronous client library";
|
|
homepage = "https://github.com/mosquito/aiormq";
|
|
changelog = "https://github.com/mosquito/aiormq/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ emilytrau ];
|
|
};
|
|
}
|