
Diff: https://github.com/mkdocstrings/griffe/compare/refs/tags/1.7.3...refs/tags/1.8.0 Changelog: https://github.com/mkdocstrings/griffe/blob/1.8.0/CHANGELOG.md
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
aiofiles,
|
|
buildPythonPackage,
|
|
colorama,
|
|
fetchFromGitHub,
|
|
git,
|
|
jsonschema,
|
|
pdm-backend,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "griffe";
|
|
version = "1.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkdocstrings";
|
|
repo = "griffe";
|
|
tag = version;
|
|
hash = "sha256-p+igAui0LNMj8tMBmw59K8mNdixqfxU8P9lHDZkoFaY=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
dependencies = [ colorama ];
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
jsonschema
|
|
pytestCheckHook
|
|
];
|
|
|
|
optional-dependencies = {
|
|
async = [ aiofiles ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "griffe" ];
|
|
|
|
disabledTestPaths = [
|
|
# Circular dependencies
|
|
"tests/test_api.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Signatures for entire Python programs";
|
|
homepage = "https://github.com/mkdocstrings/griffe";
|
|
changelog = "https://github.com/mkdocstrings/griffe/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "griffe";
|
|
};
|
|
}
|