Unverified Commit 00be41f7 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

Merge pull request #256474 from mbalatsko/init-pytest-reverse

python3Packages.pytest-reverse: init at 1.7.0
parents fb45976b b25543f8
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytest
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pytest-reverse";
  version = "1.7.0";
  format = "pyproject";

  disable = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "adamchainz";
    repo = "pytest-reverse";
    rev = version;
    hash = "sha256-r0aSbUgArHQkpaXUvMT6oyOxEliQRtSGuDt4IILzhH4=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  buildInputs = [ pytest ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pytest_reverse" ];

  meta = with lib; {
    description = "Pytest plugin to reverse test order";
    homepage = "https://github.com/adamchainz/pytest-reverse";
    changelog = "https://github.com/adamchainz/pytest-reverse/blob/${version}/CHANGELOG.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ mbalatsko ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10345,6 +10345,8 @@ self: super: with self; {
  pytest-randomly = callPackage ../development/python-modules/pytest-randomly { };
  pytest-reverse = callPackage ../development/python-modules/pytest-reverse { };
  pytest-random-order = callPackage ../development/python-modules/pytest-random-order { };
  pytest-recording = callPackage ../development/python-modules/pytest-recording { };