blob: 67170265ca7086f07458d3e7848d12eff88521d9 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
pdm-backend,
# dependencies
exceptiongroup,
hypercorn,
quart,
trio,
# tests
pytest-cov-stub,
pytest-trio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "quart-trio";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pgjones";
repo = "quart-trio";
tag = version;
hash = "sha256-n41XATex20iw3ZYxud/5cTdx+F6tTQQJmP91TIw2xJo=";
};
build-system = [
pdm-backend
];
dependencies = [
hypercorn
quart
trio
]
++ hypercorn.optional-dependencies.trio
++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
];
pythonImportsCheck = [
"quart_trio"
];
nativeCheckInputs = [
pytest-cov-stub
pytest-trio
pytestCheckHook
];
meta = {
description = "Quart-Trio is an extension for Quart to support the Trio event loop";
homepage = "https://github.com/pgjones/quart-trio";
changelog = "https://github.com/pgjones/quart-trio/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
|