2022-06-28 18:35:59 +00:00
|
|
|
{ lib
|
2022-10-02 16:15:05 +00:00
|
|
|
, buildPythonPackage
|
2022-06-28 18:35:59 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, griffe
|
|
|
|
, mkdocs-material
|
|
|
|
, mkdocstrings
|
2023-05-07 12:01:55 +00:00
|
|
|
, pdm-backend
|
2022-06-28 18:35:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2022-10-02 16:15:05 +00:00
|
|
|
buildPythonPackage rec {
|
2022-06-28 18:35:59 +00:00
|
|
|
pname = "mkdocstrings-python";
|
2023-08-21 15:04:32 +00:00
|
|
|
version = "1.5.0";
|
2022-06-28 18:35:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkdocstrings";
|
|
|
|
repo = "python";
|
2023-07-18 22:38:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-08-21 15:04:32 +00:00
|
|
|
hash = "sha256-Z92w84JI7tzARHNdVZvOrMHFbMLUayf6uHak++C0suc=";
|
2022-06-28 18:35:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-05-07 12:01:55 +00:00
|
|
|
pdm-backend
|
2022-06-28 18:35:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
griffe
|
|
|
|
mkdocstrings
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-28 18:35:59 +00:00
|
|
|
mkdocs-material
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"mkdocstrings_handlers"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python handler for mkdocstrings";
|
|
|
|
homepage = "https://github.com/mkdocstrings/python";
|
2022-12-09 08:45:57 +00:00
|
|
|
changelog = "https://github.com/mkdocstrings/python/blob/${version}/CHANGELOG.md";
|
2022-06-28 18:35:59 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|