Files

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
pdm-backend,
uv-dynamic-versioning,
# optional-dependencies
pip,
platformdirs,
wheel,
}:
buildPythonPackage (finalAttrs: {
pname = "griffelib";
version = "2.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mkdocstrings";
repo = "griffe";
tag = finalAttrs.version;
hash = "sha256-Fxa9lrBVQ/enVLiU7hUc0d5x9ItI19EGnbxa7MX6Plc=";
};
sourceRoot = "${finalAttrs.src.name}/packages/griffelib";
build-system = [
hatchling
pdm-backend
uv-dynamic-versioning
];
optional-dependencies.pypi = [
pip
platformdirs
wheel
];
pythonImportsCheck = [
"griffe"
];
meta = {
changelog = "https://github.com/mkdocstrings/griffe/releases/tag/${finalAttrs.src.tag}";
description = "Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API";
homepage = "https://github.com/mkdocstrings/griffe";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ hexa ];
};
})