blob: ea1ab65ae52ec815010e69cfe8b5b8cb861de6c4 (
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
59
60
61
62
63
64
65
66
67
|
{
lib,
buildPythonPackage,
fetchPypi,
sphinxHook,
# Build system
setuptools,
setuptools-scm,
# Dependencies
click,
docutils,
sphinx,
# Checks
pytestCheckHook,
defusedxml,
}:
buildPythonPackage rec {
pname = "sphinx-click";
version = "6.2.0";
pyproject = true;
build-system = [
setuptools
setuptools-scm
];
postPatch = ''
# Would require reno which would require the .git directory to stay around
substituteInPlace docs/changelog.rst \
--replace-fail '.. release-notes::' 'Check https://sphinx-click.readthedocs.io/en/latest/changelog/ for the Release Notes.'
substituteInPlace docs/conf.py \
--replace-fail "'reno.sphinxext'" ""
'';
nativeBuildInputs = [
sphinxHook
];
dependencies = [
click
docutils
sphinx
];
nativeCheckInputs = [
pytestCheckHook
defusedxml
];
pythonImportsCheck = [
"sphinx_click"
];
src = fetchPypi {
inherit version;
pname = "sphinx_click";
hash = "sha256-/Hi0FUpOUVlGLjbeVbhkN0fabNqGs7Uqi7YiieYDd2w=";
};
meta = {
description = "Sphinx extension that automatically documents click applications";
homepage = "https://github.com/click-contrib/sphinx-click";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ antonmosich ];
};
}
|