blob: 9caa5976aacbee38ca95864de76f8df7d9a0abac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
griffe,
inline-snapshot,
mkdocs-autorefs,
mkdocs-material,
mkdocstrings,
pdm-backend,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mkdocstrings-python";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mkdocstrings";
repo = "python";
tag = version;
hash = "sha256-xaLC4zzX18lzYNpNJQrx3IXcZ22qQgktzzzgKDef8xE=";
};
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 ];
};
}
|