Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 31 lines 826 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, factory_boy, faker, numpy 3, pytest, pytest_xdist 4}: 5 6buildPythonPackage rec { 7 pname = "pytest-randomly"; 8 version = "3.4.1"; 9 10 disabled = isPy27; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0s9cx692cdchfrjqx7fgf9wnm3fdac211a4hjq1cx9qqnbpdpl2z"; 15 }; 16 17 propagatedBuildInputs = [ numpy factory_boy faker ]; 18 19 checkInputs = [ pytest pytest_xdist ]; 20 21 # test warnings are fixed on an unreleased version: 22 # https://github.com/pytest-dev/pytest-randomly/pull/281 23 checkPhase = "pytest -p no:randomly"; 24 25 meta = with lib; { 26 description = "Pytest plugin to randomly order tests and control random.seed"; 27 homepage = "https://github.com/pytest-dev/pytest-randomly"; 28 license = licenses.bsd3; 29 maintainers = [ maintainers.sternenseemann ]; 30 }; 31}