python3Packages.pytest-randomly: 3.10.1 -> 3.10.3

This commit is contained in:
Fabian Affolter 2021-12-08 08:48:39 +01:00 committed by Jonathan Ringer
parent f2aa618657
commit bebdf6fbf6
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -1,20 +1,27 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, factory_boy, faker, numpy, importlib-metadata
, pytestCheckHook, pytest-xdist
{ lib
, buildPythonPackage
, factory_boy
, faker
, fetchFromGitHub
, importlib-metadata
, numpy
, pytest-xdist
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-randomly";
version = "3.10.1";
version = "3.10.3";
format = "setuptools";
disabled = pythonOlder "3.6";
# fetch from GitHub as pypi tarball doesn't include tests
src = fetchFromGitHub {
repo = pname;
owner = "pytest-dev";
rev = version;
sha256 = "10z7hsr8yd80sf5113i61p0g1c0nqkx7p4xi19v3d133f6vjbh3k";
sha256 = "sha256-NoYpMpFWz52Z0+KIUumUFp3xMPA1jGw8COojU+bsgHc=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
@ -22,19 +29,27 @@ buildPythonPackage rec {
];
checkInputs = [
pytestCheckHook
pytest-xdist
numpy
factory_boy
faker
numpy
pytest-xdist
pytestCheckHook
];
# needs special invocation, copied from tox.ini
pytestFlagsArray = [ "-p" "no:randomly" ];
pytestFlagsArray = [
"-p"
"no:randomly"
];
pythonImportsCheck = [
"pytest_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 ];
maintainers = with maintainers; [ sternenseemann ];
};
}