Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 1.0 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder 2, factory_boy, faker, numpy, backports-entry-points-selectable 3, pytestCheckHook, pytest_xdist 4}: 5 6buildPythonPackage rec { 7 pname = "pytest-randomly"; 8 version = "3.6.0"; 9 10 disabled = pythonOlder "3.6"; 11 12 # fetch from GitHub as pypi tarball doesn't include tests 13 src = fetchFromGitHub { 14 repo = pname; 15 owner = "pytest-dev"; 16 rev = version; 17 sha256 = "17s7gx8b7sl7mp77f5dxzwbb32qliz9awrp6xz58bhjqp7pcsa5h"; 18 }; 19 20 propagatedBuildInputs = [ 21 backports-entry-points-selectable 22 ]; 23 24 checkInputs = [ 25 pytestCheckHook 26 pytest_xdist 27 numpy 28 factory_boy 29 faker 30 ]; 31 # needs special invocation, copied from tox.ini 32 pytestFlagsArray = [ "-p" "no:randomly" ]; 33 34 meta = with lib; { 35 description = "Pytest plugin to randomly order tests and control random.seed"; 36 homepage = "https://github.com/pytest-dev/pytest-randomly"; 37 license = licenses.bsd3; 38 maintainers = [ maintainers.sternenseemann ]; 39 }; 40}