python3Packages.doc8: fix build and enable tests

main
Fabian Affolter 3 years ago committed by Jonathan Ringer
parent ab7c7330a9
commit 2711b62a09
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 35
      pkgs/development/python-modules/doc8/default.nix

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

Loading…
Cancel
Save