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
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
jinja2,
pdoc-pyo3-sample-library,
pygments,
markupsafe,
astunparse,
pytestCheckHook,
hypothesis,
}:
buildPythonPackage rec {
pname = "pdoc";
version = "14.5.1";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "mitmproxy";
repo = "pdoc";
rev = "v${version}";
hash = "sha256-YtoY/Sp9r6yIviXFKPYc+N8PjfKX+cZxtCZmR6fr1Tc=";
};
nativeBuildInputs = [ setuptools ];
dependencies = [
jinja2
pygments
markupsafe
] ++ lib.optional (pythonOlder "3.9") astunparse;
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"
];
pytestFlagsArray = [
''-m "not slow"'' # skip slow tests
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "pdoc" ];
meta = with lib; {
changelog = "https://github.com/mitmproxy/pdoc/blob/${src.rev}/CHANGELOG.md";
homepage = "https://pdoc.dev/";
description = "API Documentation for Python Projects";
mainProgram = "pdoc";
license = licenses.unlicense;
maintainers = with maintainers; [ pbsds ];
};
}
|