Files
nixpkgs/pkgs/development/python-modules/doc8/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1015 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
chardet,
docutils,
fetchPypi,
pbr,
pygments,
pytestCheckHook,
pythonOlder,
restructuredtext-lint,
setuptools-scm,
stevedore,
wheel,
}:
buildPythonPackage rec {
pname = "doc8";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-EmetMnWJcfvPmRRCQXo5Nce8nlJVDnNiLg5WulXqHUA=";
};
build-system = [
setuptools-scm
wheel
];
buildInputs = [ pbr ];
dependencies = [
docutils
chardet
stevedore
restructuredtext-lint
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
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 ];
};
}