Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, aiormq, buildPythonPackage, fetchFromGitHub, pyprojectVersionPatchHook, uv-build, yarl,}:
buildPythonPackage (finalAttrs: { pname = "aio-pika"; version = "10.2.3"; pyproject = true;
src = fetchFromGitHub { owner = "mosquito"; repo = "aio-pika"; tag = finalAttrs.version; hash = "sha256-UGYyx6Uu1eLBWEIAzwsS3DvPpcJ5DHWaHKlNpr+qq+Q="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.9.26,<0.12" uv_build '';
pythonRelaxDeps = [ "aiormq" ];
build-system = [ uv-build ];
nativeBuildInputs = [ pyprojectVersionPatchHook ];
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/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ emilytrau ]; };})