472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{
|
|
lib,
|
|
aiofiles,
|
|
buildPythonPackage,
|
|
colorama,
|
|
fetchFromGitHub,
|
|
git,
|
|
jsonschema,
|
|
mkdocstrings,
|
|
pdm-backend,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "griffe";
|
|
version = "1.3.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkdocstrings";
|
|
repo = "griffe";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-IDIacG1FM/JidHV76PGTaPnkIfulAli8+YLuiuPHdZ8=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
dependencies = [
|
|
colorama
|
|
mkdocstrings
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
jsonschema
|
|
pytestCheckHook
|
|
];
|
|
|
|
optional-dependencies = {
|
|
async = [ aiofiles ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "griffe" ];
|
|
|
|
meta = with lib; {
|
|
description = "Signatures for entire Python programs";
|
|
homepage = "https://github.com/mkdocstrings/griffe";
|
|
changelog = "https://github.com/mkdocstrings/griffe/blob/${version}/CHANGELOG.md";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "griffe";
|
|
};
|
|
}
|