2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-19 13:55:26 +00:00
|
|
|
, factory-boy
|
2022-01-13 20:06:32 +00:00
|
|
|
, faker
|
|
|
|
, fetchFromGitHub
|
|
|
|
, importlib-metadata
|
|
|
|
, numpy
|
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-08-10 07:59:29 +00:00
|
|
|
, setuptools
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-randomly";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "3.13.0";
|
|
|
|
format = "pyproject";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "pytest-dev";
|
|
|
|
rev = version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-bxbW22Nf/0hfJYSiz3xdrNCzrb7vZwuVvSIrWl0Bkv4=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
|
|
|
importlib-metadata
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
factory-boy
|
2021-04-26 19:14:03 +00:00
|
|
|
faker
|
2022-01-13 20:06:32 +00:00
|
|
|
numpy
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
# needs special invocation, copied from tox.ini
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-p"
|
|
|
|
"no:randomly"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_randomly"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/pytest-randomly/blob/${version}/CHANGELOG.rst";
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "Pytest plugin to randomly order tests and control random.seed";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-randomly";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.mit;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|