blob: cdd5bf8c26623c1891f555a8801674abb2eeee0e (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pdm-backend,
pyhumps,
quart,
msgspec,
attrs,
pytestCheckHook,
pytest-asyncio,
pydantic,
hypothesis,
}:
buildPythonPackage (finalAttrs: {
pname = "quart-schema";
version = "0.22.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pgjones";
repo = "quart-schema";
tag = finalAttrs.version;
hash = "sha256-saKV8iasc9ZynmUQI4bAYS9h8nGXgXR0Vm5oIDHedB4=";
};
build-system = [ pdm-backend ];
dependencies = [
pyhumps
quart
msgspec
attrs
];
pythonImportsCheck = [
"quart"
"quart_schema"
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pydantic
hypothesis
];
preCheck = ''
substituteInPlace pyproject.toml \
--replace-fail "--no-cov-on-fail" ""
'';
meta = {
description = "Create subcommand-based CLI programs with docopt";
homepage = "https://github.com/abingham/docopt-subcommands";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
})
|