pythonPackages.pytest-randomly: init at 3.4.1
This commit is contained in:
parent
ba6ac14311
commit
9388762bf7
2 changed files with 33 additions and 0 deletions
31
pkgs/development/python-modules/pytest-randomly/default.nix
Normal file
31
pkgs/development/python-modules/pytest-randomly/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2750,6 +2750,8 @@ in {
|
||||||
|
|
||||||
pytest-raisesregexp = callPackage ../development/python-modules/pytest-raisesregexp { };
|
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-random-order = callPackage ../development/python-modules/pytest-random-order { };
|
||||||
|
|
||||||
pytest-repeat = callPackage ../development/python-modules/pytest-repeat { };
|
pytest-repeat = callPackage ../development/python-modules/pytest-repeat { };
|
||||||
|
|
Loading…
Reference in a new issue