1{
2 lib,
3 buildPythonPackage,
4 chardet,
5 docutils,
6 fetchPypi,
7 pbr,
8 pygments,
9 pytestCheckHook,
10 pythonOlder,
11 restructuredtext-lint,
12 setuptools-scm,
13 stevedore,
14 wheel,
15}:
16
17buildPythonPackage rec {
18 pname = "doc8";
19 version = "2.0.0";
20 pyproject = true;
21
22 disabled = pythonOlder "3.10";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-EmetMnWJcfvPmRRCQXo5Nce8nlJVDnNiLg5WulXqHUA=";
27 };
28
29 build-system = [
30 setuptools-scm
31 wheel
32 ];
33
34 buildInputs = [ pbr ];
35
36 dependencies = [
37 docutils
38 chardet
39 stevedore
40 restructuredtext-lint
41 pygments
42 ];
43
44 nativeCheckInputs = [ pytestCheckHook ];
45
46 pythonImportsCheck = [ "doc8" ];
47
48 meta = {
49 description = "Style checker for Sphinx (or other) RST documentation";
50 mainProgram = "doc8";
51 homepage = "https://github.com/pycqa/doc8";
52 changelog = "https://github.com/PyCQA/doc8/releases/tag/v${version}";
53 license = lib.licenses.asl20;
54 maintainers = with lib.maintainers; [ onny ];
55 };
56}