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