python3Packages.pytest-randomly: 3.10.1 -> 3.10.3
This commit is contained in:
parent
f2aa618657
commit
bebdf6fbf6
@ -1,20 +1,27 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
{ lib
|
||||||
, factory_boy, faker, numpy, importlib-metadata
|
, buildPythonPackage
|
||||||
, pytestCheckHook, pytest-xdist
|
, factory_boy
|
||||||
|
, faker
|
||||||
|
, fetchFromGitHub
|
||||||
|
, importlib-metadata
|
||||||
|
, numpy
|
||||||
|
, pytest-xdist
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-randomly";
|
pname = "pytest-randomly";
|
||||||
version = "3.10.1";
|
version = "3.10.3";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
# fetch from GitHub as pypi tarball doesn't include tests
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
repo = pname;
|
repo = pname;
|
||||||
owner = "pytest-dev";
|
owner = "pytest-dev";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "10z7hsr8yd80sf5113i61p0g1c0nqkx7p4xi19v3d133f6vjbh3k";
|
sha256 = "sha256-NoYpMpFWz52Z0+KIUumUFp3xMPA1jGw8COojU+bsgHc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
||||||
@ -22,19 +29,27 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
|
||||||
pytest-xdist
|
|
||||||
numpy
|
|
||||||
factory_boy
|
factory_boy
|
||||||
faker
|
faker
|
||||||
|
numpy
|
||||||
|
pytest-xdist
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# needs special invocation, copied from tox.ini
|
# needs special invocation, copied from tox.ini
|
||||||
pytestFlagsArray = [ "-p" "no:randomly" ];
|
pytestFlagsArray = [
|
||||||
|
"-p"
|
||||||
|
"no:randomly"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pytest_randomly"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pytest plugin to randomly order tests and control random.seed";
|
description = "Pytest plugin to randomly order tests and control random.seed";
|
||||||
homepage = "https://github.com/pytest-dev/pytest-randomly";
|
homepage = "https://github.com/pytest-dev/pytest-randomly";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.sternenseemann ];
|
maintainers = with maintainers; [ sternenseemann ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user