1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 py,
6 pytest,
7 pytest-xdist,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-random-order";
15 version = "1.1.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.5";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-RHLX008fHF86NZxP/FwT7QZSMvMeyhnIhEwatAbnkIA=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 buildInputs = [ pytest ];
28
29 nativeCheckInputs = [
30 py
31 pytest-xdist
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "random_order" ];
36
37 meta = with lib; {
38 homepage = "https://github.com/jbasko/pytest-random-order";
39 description = "Randomise the order of tests with some control over the randomness";
40 changelog = "https://github.com/jbasko/pytest-random-order/releases/tag/v${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ prusnak ];
43 };
44}