Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / doc8 / default.nix
blob915918bc54b6436c0e051b2ef26289a9e26351d7
1 { lib
2 , buildPythonPackage
3 , chardet
4 , docutils
5 , fetchpatch
6 , fetchPypi
7 , pbr
8 , pygments
9 , pytestCheckHook
10 , pythonOlder
11 , restructuredtext-lint
12 , setuptools-scm
13 , stevedore
14 , wheel
17 buildPythonPackage rec {
18   pname = "doc8";
19   version = "1.1.1";
20   format = "pyproject";
22   disabled = pythonOlder "3.7";
24   src = fetchPypi {
25     inherit pname version;
26     hash = "sha256-2XqT6PWi78RxOggEZX3trYN0XMpM0diN6Rhvd/l3YAQ=";
27   };
29   patches = [
30     # https://github.com/PyCQA/doc8/pull/146
31     (fetchpatch {
32       name = "remove-setuptools-scm-git-archive.patch";
33       url = "https://github.com/PyCQA/doc8/commit/06416e95041db92e4295b13ab596351618f6b32e.patch";
34       hash = "sha256-IIE3cDNOx+6RLjidGrokyazaX7MOVbMKUb7yQIM5sI0=";
35     })
36   ];
38   nativeBuildInputs = [
39     setuptools-scm
40     wheel
41   ];
43   buildInputs = [
44     pbr
45   ];
47   propagatedBuildInputs = [
48     docutils
49     chardet
50     stevedore
51     restructuredtext-lint
52     pygments
53   ];
55   nativeCheckInputs = [
56     pytestCheckHook
57   ];
59   pythonImportsCheck = [
60     "doc8"
61   ];
63   meta = with lib; {
64     description = "Style checker for Sphinx (or other) RST documentation";
65     homepage = "https://github.com/pycqa/doc8";
66     changelog = "https://github.com/PyCQA/doc8/releases/tag/v${version}";
67     license = licenses.asl20;
68     maintainers = with maintainers; [ onny ];
69   };