2024-04-09 09:51:06 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
griffe,
|
|
|
|
mkdocs-material,
|
|
|
|
mkdocstrings,
|
|
|
|
pdm-backend,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2022-06-28 20:35:59 +02:00
|
|
|
}:
|
|
|
|
|
2022-10-02 18:15:05 +02:00
|
|
|
buildPythonPackage rec {
|
2022-06-28 20:35:59 +02:00
|
|
|
pname = "mkdocstrings-python";
|
2024-10-29 22:27:03 +01:00
|
|
|
version = "1.12.2";
|
2024-01-09 09:27:53 +01:00
|
|
|
pyproject = true;
|
2022-06-28 20:35:59 +02:00
|
|
|
|
2023-08-21 18:09:38 +02:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-06-28 20:35:59 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkdocstrings";
|
|
|
|
repo = "python";
|
2023-07-18 22:38:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-29 22:27:03 +01:00
|
|
|
hash = "sha256-dc9RXbrwZS/7eAF0BrGS2kJxG62rB5RLxf3yNZ6+g4Q=";
|
2022-06-28 20:35:59 +02:00
|
|
|
};
|
|
|
|
|
2024-04-09 09:51:06 +02:00
|
|
|
build-system = [ pdm-backend ];
|
2022-06-28 20:35:59 +02:00
|
|
|
|
2024-04-09 09:50:44 +02:00
|
|
|
dependencies = [
|
2022-06-28 20:35:59 +02:00
|
|
|
griffe
|
|
|
|
mkdocstrings
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-28 20:35:59 +02:00
|
|
|
mkdocs-material
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-04-09 09:51:06 +02:00
|
|
|
pythonImportsCheck = [ "mkdocstrings_handlers" ];
|
2022-06-28 20:35:59 +02:00
|
|
|
|
2024-10-13 16:58:12 +02:00
|
|
|
disabledTests = [
|
|
|
|
# Tests fails with AssertionError
|
|
|
|
"test_windows_root_conversion"
|
|
|
|
];
|
|
|
|
|
2022-06-28 20:35:59 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python handler for mkdocstrings";
|
|
|
|
homepage = "https://github.com/mkdocstrings/python";
|
2022-12-09 09:45:57 +01:00
|
|
|
changelog = "https://github.com/mkdocstrings/python/blob/${version}/CHANGELOG.md";
|
2022-06-28 20:35:59 +02:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|