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