python3Packages.pytest-reverse: init at 1.7.0

This commit is contained in:
Maksym Balatsko 2023-09-21 03:51:27 -07:00
parent 3fc41eb16b
commit b25543f889
2 changed files with 43 additions and 0 deletions

View file

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

View file

@ -10339,6 +10339,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 { };