blob: 31e7a30b6fa207f10bec5760c8a72f6369426804 (
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
48
49
|
{
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 ];
};
}
|