at 24.05-pre 1.3 kB view raw
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 15}: 16 17buildPythonPackage rec { 18 pname = "doc8"; 19 version = "1.1.1"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-2XqT6PWi78RxOggEZX3trYN0XMpM0diN6Rhvd/l3YAQ="; 27 }; 28 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 ]; 37 38 nativeBuildInputs = [ 39 setuptools-scm 40 wheel 41 ]; 42 43 buildInputs = [ 44 pbr 45 ]; 46 47 propagatedBuildInputs = [ 48 docutils 49 chardet 50 stevedore 51 restructuredtext-lint 52 pygments 53 ]; 54 55 nativeCheckInputs = [ 56 pytestCheckHook 57 ]; 58 59 pythonImportsCheck = [ 60 "doc8" 61 ]; 62 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 }; 70}