Files
nixpkgs/pkgs/development/python-modules/doc8/default.nix
T
2026-02-28 22:57:05 +01:00

60 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
chardet,
docutils,
fetchPypi,
pbr,
pygments,
pytestCheckHook,
restructuredtext-lint,
setuptools-scm,
stevedore,
wheel,
}:
buildPythonPackage rec {
pname = "doc8";
version = "2.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-EmetMnWJcfvPmRRCQXo5Nce8nlJVDnNiLg5WulXqHUA=";
};
pythonRelaxDeps = [ "docutils" ];
build-system = [
setuptools-scm
wheel
];
buildInputs = [ pbr ];
dependencies = [
docutils
chardet
stevedore
restructuredtext-lint
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlags = [
"-Wignore::PendingDeprecationWarning"
];
pythonImportsCheck = [ "doc8" ];
meta = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ onny ];
};
}