nixpkgs/pkgs/development/python-modules/doc8/default.nix
2024-11-10 21:37:32 +01:00

59 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
chardet,
docutils,
fetchPypi,
pbr,
pygments,
pytestCheckHook,
pythonOlder,
restructuredtext-lint,
setuptools-scm,
stevedore,
wheel,
}:
buildPythonPackage rec {
pname = "doc8";
version = "1.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-EiXzAUThzJfjiNuvf+PpltKJdHOlOm2uJo3d4hw1S5g=";
};
nativeBuildInputs = [
setuptools-scm
wheel
];
buildInputs = [ pbr ];
propagatedBuildInputs = [
docutils
chardet
stevedore
restructuredtext-lint
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
pythonRelaxDeps = [ "docutils" ];
pythonImportsCheck = [ "doc8" ];
meta = with lib; {
description = "Style checker for Sphinx (or other) RST documentation";
mainProgram = "doc8";
homepage = "https://github.com/pycqa/doc8";
changelog = "https://github.com/PyCQA/doc8/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ onny ];
};
}