Merge pull request #265269 from natsukium/restructuredtext-lint

python311Packages.restructuredtext-lint: rename from restructuredtext_lint
This commit is contained in:
Robert Schütz 2023-11-06 15:36:02 -08:00 committed by GitHub
commit a2ed35c576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 53 additions and 37 deletions

View File

@ -8,7 +8,7 @@
, pygments
, pytestCheckHook
, pythonOlder
, restructuredtext_lint
, restructuredtext-lint
, setuptools-scm
, stevedore
, wheel
@ -48,7 +48,7 @@ buildPythonPackage rec {
docutils
chardet
stevedore
restructuredtext_lint
restructuredtext-lint
pygments
];

View File

@ -6,7 +6,7 @@
, python-dateutil
, x-wr-timezone
, pytestCheckHook
, restructuredtext_lint
, restructuredtext-lint
, pygments
, tzdata
}:
@ -33,7 +33,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
restructuredtext_lint
restructuredtext-lint
pygments
tzdata
];

View File

@ -0,0 +1,45 @@
{ 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";
};
}

View File

@ -1,30 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, nose
, testtools
}:
buildPythonPackage rec {
pname = "restructuredtext_lint";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-GyNcDJIjQatsUwOQiS656S+QubdQRgY+BHys+w8FDEU=";
};
nativeCheckInputs = [ nose testtools ];
propagatedBuildInputs = [ docutils ];
checkPhase = ''
nosetests --nocapture
'';
meta = {
description = "reStructuredText linter";
homepage = "https://github.com/twolfson/restructuredtext-lint";
license = lib.licenses.unlicense;
};
}

View File

@ -4,7 +4,7 @@
, icalendar
, pytz
, pytestCheckHook
, restructuredtext_lint
, restructuredtext-lint
, pygments
}:
@ -28,7 +28,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
restructuredtext_lint
restructuredtext-lint
pygments
];

View File

@ -371,6 +371,7 @@ mapAliases ({
repeated_test = repeated-test; # added 2022-11-15
requests_oauthlib = requests-oauthlib; # added 2022-02-12
requests_toolbelt = requests-toolbelt; # added 2017-09-26
restructuredtext_lint = restructuredtext-lint; # added 2023-11-04
rig = throw "rig has been removed because it was pinned to python 2.7 and 3.5, failed to build and is otherwise unmaintained"; # added 2022-11-28
rl-coach = "rl-coach was removed because the project is discontinued and was archived by upstream"; # added 2023-05-03
roboschool = throw "roboschool is deprecated in favor of PyBullet and has been removed"; # added 2022-01-15

View File

@ -12227,7 +12227,7 @@ self: super: with self; {
restrictedpython = callPackage ../development/python-modules/restrictedpython { };
restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { };
restructuredtext-lint = callPackage ../development/python-modules/restructuredtext-lint { };
restview = callPackage ../development/python-modules/restview { };