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
66
67
68
69
70
71
72
73
74
75
76
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
# runtime dependencies
fastapi,
issubclass,
jinja2,
pydantic,
starlette,
typing-extensions,
typing-inspection,
# test dependencies
dirty-equals,
httpx,
inline-snapshot,
pydantic-settings,
pytest-fixture-classes,
python-multipart,
svcs,
typer,
uvicorn,
pythonAtLeast,
}:
buildPythonPackage (finalAttrs: {
pname = "cadwyn";
version = "6.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zmievsa";
repo = "cadwyn";
tag = finalAttrs.version;
hash = "sha256-vkW3ZSIRuIDVQCHMsZrBEs+VBW55kn0dE2nMXqL5XmU=";
};
disabled = pythonAtLeast "3.14";
build-system = [ hatchling ];
dependencies = [
fastapi
issubclass
jinja2
pydantic
starlette
typing-extensions
typing-inspection
];
pythonImportsCheck = [ "cadwyn" ];
nativeCheckInputs = [
dirty-equals
httpx
inline-snapshot
pydantic-settings
pytest-fixture-classes
pytestCheckHook
python-multipart
svcs
typer
uvicorn
];
meta = {
description = "Production-ready community-driven modern Stripe-like API versioning in FastAPI";
homepage = "https://github.com/zmievsa/cadwyn";
changelog = "https://github.com/zmievsa/cadwyn/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ taranarmo ];
};
})
|