python3Packages.annotated-doc: init at 0.0.3

New dependency for fastapi.
This commit is contained in:
Martin Weinelt
2025-11-25 12:39:05 -08:00
committed by Robert Schütz
parent edecdd9e3f
commit 12928b102f
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
uv-build,
pytestCheckHook,
typing-extensions,
}:
buildPythonPackage rec {
pname = "annotated-doc";
version = "0.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "fastapi";
repo = "annotated-doc";
tag = version;
hash = "sha256-PFB+GqFRe5vF8xoWJPsXligSpzkUIt8TOqsmrKlfwyc=";
};
build-system = [
uv-build
];
nativeCheckInputs = [
pytestCheckHook
typing-extensions
];
pythonImportsCheck = [
"annotated_doc"
];
meta = {
description = "Document parameters, class attributes, return types, and variables inline, with Annotated";
homepage = "https://github.com/fastapi/annotated-doc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
+2
View File
@@ -702,6 +702,8 @@ self: super: with self; {
annexremote = callPackage ../development/python-modules/annexremote { };
annotated-doc = callPackage ../development/python-modules/annotated-doc { };
annotated-types = callPackage ../development/python-modules/annotated-types { };
annotatedyaml = callPackage ../development/python-modules/annotatedyaml { };