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
59
60
61
62
63
64
65
66
67
68
69
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
jinja2,
pdoc-pyo3-sample-library,
pygments,
markupsafe,
pytestCheckHook,
hypothesis,
nix-update-script,
markdown2,
pydantic,
}:
buildPythonPackage rec {
pname = "pdoc";
version = "16.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mitmproxy";
repo = "pdoc";
tag = "v${version}";
hash = "sha256-9amp6CWYIcniVfdlmPKYuRFR7B5JJtuMlOoDxpfvvJA=";
};
build-system = [ setuptools ];
dependencies = [
jinja2
pygments
markupsafe
markdown2
pydantic
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pdoc-pyo3-sample-library
];
disabledTestPaths = [
# "test_snapshots" tries to match generated output against stored snapshots,
# which are highly sensitive to dep versions.
"test/test_snapshot.py"
];
disabledTestMarks = [
"slow" # skip slow tests
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "pdoc" ];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/mitmproxy/pdoc/blob/${src.rev}/CHANGELOG.md";
homepage = "https://pdoc.dev/";
description = "API Documentation for Python Projects";
mainProgram = "pdoc";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ pbsds ];
};
}
|