mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
griffe,
|
|
inline-snapshot,
|
|
mkdocs-autorefs,
|
|
mkdocs-material,
|
|
mkdocstrings,
|
|
pdm-backend,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocstrings-python";
|
|
version = "1.16.12";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkdocstrings";
|
|
repo = "python";
|
|
tag = version;
|
|
hash = "sha256-NL5gn8HgT0hvIlUDs//sErAaSVXvxLDJGT7nZX65ZVU=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
dependencies = [
|
|
griffe
|
|
mkdocs-autorefs
|
|
mkdocstrings
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
beautifulsoup4
|
|
inline-snapshot
|
|
mkdocs-material
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "mkdocstrings_handlers" ];
|
|
|
|
disabledTests = [
|
|
# Tests fails with AssertionError
|
|
"test_windows_root_conversion"
|
|
# TypeError
|
|
"test_format_code"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python handler for mkdocstrings";
|
|
homepage = "https://github.com/mkdocstrings/python";
|
|
changelog = "https://github.com/mkdocstrings/python/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|