Unverified Commit a2ed35c5 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #265269 from natsukium/restructuredtext-lint

python311Packages.restructuredtext-lint: rename from restructuredtext_lint
parents 5057d0df b46372d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
  ];

+2 −2
Original line number Diff line number Diff line
@@ -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
  ];
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, docutils
, nose
, testtools
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "restructuredtext_lint";
  pname = "restructuredtext-lint";
  version = "1.4.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    pname = "restructuredtext_lint";
    inherit version;
    hash = "sha256-GyNcDJIjQatsUwOQiS656S+QubdQRgY+BHys+w8FDEU=";
  };

  nativeCheckInputs = [ nose testtools ];
  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [ docutils ];

  checkPhase = ''
    nosetests --nocapture
  '';
  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";
  };
}
+2 −2
Original line number Diff line number Diff line
@@ -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
  ];

+1 −0
Original line number Diff line number Diff line
@@ -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
Loading