2022-06-28 18:25:09 +00:00
|
|
|
{ lib
|
|
|
|
, aiofiles
|
2022-10-02 14:14:53 +00:00
|
|
|
, buildPythonPackage
|
2022-11-14 17:32:42 +00:00
|
|
|
, colorama
|
2022-06-28 18:25:09 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
2023-04-03 18:40:54 +00:00
|
|
|
, jsonschema
|
|
|
|
, pdm-backend
|
2022-06-28 18:25:09 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2022-10-02 14:14:53 +00:00
|
|
|
buildPythonPackage rec {
|
2022-06-28 18:25:09 +00:00
|
|
|
pname = "griffe";
|
2023-09-11 07:16:58 +00:00
|
|
|
version = "0.36.2";
|
2022-06-28 18:25:09 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-18 21:29:52 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-06-28 18:25:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkdocstrings";
|
|
|
|
repo = pname;
|
2022-11-23 17:05:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-09-11 07:16:58 +00:00
|
|
|
hash = "sha256-21u6QnmFoa3rCeFMkxdEh4OYtE4QmBr5O9PwV5tKgxg=";
|
2022-06-28 18:25:09 +00:00
|
|
|
};
|
|
|
|
|
2023-08-18 21:29:52 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
2022-10-31 19:12:02 +00:00
|
|
|
|
2022-06-28 18:25:09 +00:00
|
|
|
nativeBuildInputs = [
|
2023-04-03 18:40:54 +00:00
|
|
|
pdm-backend
|
2022-06-28 18:25:09 +00:00
|
|
|
];
|
|
|
|
|
2022-11-14 17:32:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorama
|
2022-06-28 18:25:09 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-28 18:25:09 +00:00
|
|
|
git
|
2023-04-03 18:40:54 +00:00
|
|
|
jsonschema
|
2022-06-28 18:25:09 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
async = [
|
|
|
|
aiofiles
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"griffe"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Signatures for entire Python programs";
|
|
|
|
homepage = "https://github.com/mkdocstrings/griffe";
|
2022-11-23 17:05:02 +00:00
|
|
|
changelog = "https://github.com/mkdocstrings/griffe/blob/${version}/CHANGELOG.md";
|
2022-06-28 18:25:09 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|