at 25.11-pre 1.1 kB view raw
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 = "1.1.2"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-EiXzAUThzJfjiNuvf+PpltKJdHOlOm2uJo3d4hw1S5g="; 27 }; 28 29 nativeBuildInputs = [ 30 setuptools-scm 31 wheel 32 ]; 33 34 buildInputs = [ pbr ]; 35 36 propagatedBuildInputs = [ 37 docutils 38 chardet 39 stevedore 40 restructuredtext-lint 41 pygments 42 ]; 43 44 nativeCheckInputs = [ pytestCheckHook ]; 45 46 pythonRelaxDeps = [ "docutils" ]; 47 48 pythonImportsCheck = [ "doc8" ]; 49 50 meta = with lib; { 51 description = "Style checker for Sphinx (or other) RST documentation"; 52 mainProgram = "doc8"; 53 homepage = "https://github.com/pycqa/doc8"; 54 changelog = "https://github.com/PyCQA/doc8/releases/tag/v${version}"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ onny ]; 57 }; 58}