1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytest,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-reverse";
12 version = "1.9.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "adamchainz";
17 repo = "pytest-reverse";
18 tag = version;
19 hash = "sha256-d9wx4N3RnPbOk+dZuJaCdbtXfQQwjGo5MwVNrNVGtlo=";
20 };
21
22 build-system = [ setuptools ];
23
24 buildInputs = [ pytest ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pytest_reverse" ];
29
30 meta = with lib; {
31 description = "Pytest plugin to reverse test order";
32 homepage = "https://github.com/adamchainz/pytest-reverse";
33 changelog = "https://github.com/adamchainz/pytest-reverse/blob/${src.tag}/CHANGELOG.rst";
34 license = licenses.mit;
35 maintainers = with maintainers; [ mbalatsko ];
36 };
37}