mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 14:16:35 +01:00
41 lines
805 B
Nix
41 lines
805 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pdm-backend,
|
|
pytestCheckHook,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "annotated-doc";
|
|
version = "0.0.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fastapi";
|
|
repo = "annotated-doc";
|
|
tag = version;
|
|
hash = "sha256-O7kobzzFfHelYsxTflifEcoEWsUmPzlDz3siFTAq0I0=";
|
|
};
|
|
|
|
build-system = [
|
|
pdm-backend
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|