python3Packages.doc8: fix build and enable tests

This commit is contained in:
Fabian Affolter 2021-11-30 23:51:05 +01:00 committed by Jonathan Ringer
parent ab7c7330a9
commit 2711b62a09
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -1,39 +1,52 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, chardet
, docutils
, fetchPypi , fetchPypi
, pbr , pbr
, docutils
, six
, chardet
, stevedore
, restructuredtext_lint
, pygments , pygments
, pytestCheckHook
, pythonOlder
, restructuredtext_lint
, stevedore
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "doc8"; pname = "doc8";
version = "0.10.1"; version = "0.10.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "376e50f4e70a1ae935416ddfcf93db35dd5d4cc0e557f2ec72f0667d0ace4548"; sha256 = "376e50f4e70a1ae935416ddfcf93db35dd5d4cc0e557f2ec72f0667d0ace4548";
}; };
buildInputs = [ pbr ]; buildInputs = [
pbr
];
propagatedBuildInputs = [ propagatedBuildInputs = [
docutils docutils
six
chardet chardet
stevedore stevedore
restructuredtext_lint restructuredtext_lint
pygments pygments
]; ];
doCheck = false; checkInputs = [
pytestCheckHook
];
meta = { pythonImportsCheck = [
"doc8"
];
meta = with lib; {
description = "Style checker for Sphinx (or other) RST documentation"; description = "Style checker for Sphinx (or other) RST documentation";
homepage = "https://launchpad.net/doc8"; homepage = "https://github.com/pycqa/doc8";
license = lib.licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ ];
}; };
} }