depot/third_party/nixpkgs/pkgs/development/python-modules/restructuredtext-lint/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

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";
};
}