2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
57 lines
911 B
Nix
57 lines
911 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, chardet
|
|
, docutils
|
|
, fetchPypi
|
|
, pbr
|
|
, pygments
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, restructuredtext_lint
|
|
, setuptools-scm
|
|
, stevedore
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "doc8";
|
|
version = "0.11.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-w1ojH4jxXCBGWRVO09SZ+k1ALX5j1By6e1TPXmRhI6s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [
|
|
pbr
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
docutils
|
|
chardet
|
|
stevedore
|
|
restructuredtext_lint
|
|
pygments
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"doc8"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Style checker for Sphinx (or other) RST documentation";
|
|
homepage = "https://github.com/pycqa/doc8";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|