Skip to content

Commit 5730985

Browse files
python3Packages.quart-schema: init at 0.21.0
1 parent 93ceb27 commit 5730985

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
pdm-backend,
6+
pyhumps,
7+
quart,
8+
msgspec,
9+
attrs,
10+
pytestCheckHook,
11+
pytest-asyncio,
12+
pydantic,
13+
hypothesis,
14+
}:
15+
16+
buildPythonPackage rec {
17+
pname = "quart-schema";
18+
version = "0.21.0";
19+
pyproject = true;
20+
21+
src = fetchFromGitHub {
22+
owner = "pgjones";
23+
repo = "quart-schema";
24+
tag = version;
25+
hash = "sha256-FpjnhSTkjskCxT874ABrD3Zew4g4R977xaYvJhVTDxw=";
26+
};
27+
28+
build-system = [ pdm-backend ];
29+
30+
dependencies = [
31+
pyhumps
32+
quart
33+
msgspec
34+
attrs
35+
];
36+
37+
pythonImportsCheck = [
38+
"quart"
39+
"quart_schema"
40+
];
41+
42+
nativeCheckInputs = [
43+
pytestCheckHook
44+
pytest-asyncio
45+
pydantic
46+
hypothesis
47+
];
48+
49+
preCheck = ''
50+
substituteInPlace pyproject.toml \
51+
--replace-fail "--no-cov-on-fail" ""
52+
'';
53+
54+
meta = {
55+
description = "Create subcommand-based CLI programs with docopt";
56+
homepage = "https://github.com/abingham/docopt-subcommands";
57+
license = lib.licenses.mit;
58+
maintainers = with lib.maintainers; [ sigmanificient ];
59+
};
60+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14031,6 +14031,8 @@ self: super: with self; {
1403114031

1403214032
quart-cors = callPackage ../development/python-modules/quart-cors { };
1403314033

14034+
quart-schema = callPackage ../development/python-modules/quart-schema { };
14035+
1403414036
quaternion = callPackage ../development/python-modules/quaternion { };
1403514037

1403614038
qudida = callPackage ../development/python-modules/qudida { };

0 commit comments

Comments
 (0)