2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
45 lines
900 B
Nix
45 lines
900 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";
|
|
};
|
|
}
|