depot/third_party/nixpkgs/pkgs/development/python-modules/restructuredtext-lint/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
884 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
docutils,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "restructuredtext-lint";
version = "1.4.0";
pyproject = true;
src = fetchPypi {
pname = "restructuredtext_lint";
inherit version;
hash = "sha256-GyNcDJIjQatsUwOQiS656S+QubdQRgY+BHys+w8FDEU=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ docutils ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "restructuredtext_lint/test/test.py" ];
pythonImportsCheck = [ "restructuredtext_lint" ];
meta = {
description = "reStructuredText linter";
homepage = "https://github.com/twolfson/restructuredtext-lint";
changelog = "https://github.com/twolfson/restructuredtext-lint/blob/${version}/CHANGELOG.rst";
license = lib.licenses.unlicense;
mainProgram = "rst-lint";
};
}