blob: 732b15ee597b5e89ac158334af81cbab3b63e520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
factory-boy,
faker,
fetchFromGitHub,
numpy,
pytest,
pytest-xdist,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pytest-randomly";
version = "3.13.0";
pyproject = true;
src = fetchFromGitHub {
repo = "pytest-randomly";
owner = "pytest-dev";
tag = version;
hash = "sha256-bxbW22Nf/0hfJYSiz3xdrNCzrb7vZwuVvSIrWl0Bkv4=";
};
build-system = [ setuptools ];
buildInputs = [ pytest ];
nativeCheckInputs = [
factory-boy
faker
numpy
pytest-xdist
pytestCheckHook
];
# needs special invocation, copied from tox.ini
pytestFlags = [
"-pno:randomly"
];
pythonImportsCheck = [ "pytest_randomly" ];
meta = {
changelog = "https://github.com/pytest-dev/pytest-randomly/blob/${src.tag}/CHANGELOG.rst";
description = "Pytest plugin to randomly order tests and control random.seed";
homepage = "https://github.com/pytest-dev/pytest-randomly";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sternenseemann ];
};
}
|