fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
884 B
Nix
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";
|
|
};
|
|
}
|