Files
nixpkgs/pkgs/development/python-modules/mkdocstrings-python/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 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 ];
};
}