2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytest,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-reverse";
|
|
|
|
version = "1.7.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adamchainz";
|
|
|
|
repo = "pytest-reverse";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-r0aSbUgArHQkpaXUvMT6oyOxEliQRtSGuDt4IILzhH4=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|