blob: c795828767e3183815d28939c8daafcc57c66d01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
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 ];
};
}
|