blob: 5e9a9d03b83f5b884ae48b7428ff58df5932ae23 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
pytestCheckHook,
rstcheck-core,
sphinx,
typer,
}:
buildPythonPackage rec {
pname = "rstcheck";
version = "6.2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "rstcheck";
repo = "rstcheck";
tag = "v${version}";
hash = "sha256-ajevEHCsPvr5e4K8I5AfxFZ+Vo1quaGUKFIEB9Wlobc=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
rstcheck-core
typer
];
optional-dependencies = {
sphinx = [ sphinx ];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "rstcheck" ];
preCheck = ''
# The tests need to find and call the rstcheck executable
export PATH="$PATH:$out/bin";
'';
meta = {
description = "Checks syntax of reStructuredText and code blocks nested within it";
homepage = "https://github.com/myint/rstcheck";
changelog = "https://github.com/rstcheck/rstcheck/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ staccato ];
mainProgram = "rstcheck";
};
}
|