pythonPackages.pytest-randomly: init at 3.4.1

This commit is contained in:
sternenseemann 2020-08-24 11:37:55 +02:00 committed by Jon
parent ba6ac14311
commit 9388762bf7
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, factory_boy, faker, numpy
, pytest, pytest_xdist
}:
buildPythonPackage rec {
pname = "pytest-randomly";
version = "3.4.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0s9cx692cdchfrjqx7fgf9wnm3fdac211a4hjq1cx9qqnbpdpl2z";
};
propagatedBuildInputs = [ numpy factory_boy faker ];
checkInputs = [ pytest pytest_xdist ];
# test warnings are fixed on an unreleased version:
# https://github.com/pytest-dev/pytest-randomly/pull/281
checkPhase = "pytest -p no:randomly";
meta = with lib; {
description = "Pytest plugin to randomly order tests and control random.seed";
homepage = "https://github.com/pytest-dev/pytest-randomly";
license = licenses.bsd3;
maintainers = [ maintainers.sternenseemann ];
};
}

View File

@ -2750,6 +2750,8 @@ in {
pytest-raisesregexp = callPackage ../development/python-modules/pytest-raisesregexp { };
pytest-randomly = callPackage ../development/python-modules/pytest-randomly { };
pytest-random-order = callPackage ../development/python-modules/pytest-random-order { };
pytest-repeat = callPackage ../development/python-modules/pytest-repeat { };