blob: dce8df48a430bc5f5d3fbc57e769d2f55b52625d (
plain) (
blame)
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
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest,
pytest-metadata,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pytest-json-report";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "numirias";
repo = "pytest-json-report";
rev = "refs/tags/v${version}";
hash = "sha256-hMB/atDuo7CjwhHFUOxVfgJ7Qp4AA9J428iv7hyQFcs=";
};
build-system = [ setuptools ];
buildInputs = [ pytest ];
dependencies = [ pytest-metadata ];
nativeCheckInputs = [
pytest-xdist
pytestCheckHook
];
disabledTests = [
# pytest-flaky is not available at the moment
"test_bug_31"
"test_environment_via_metadata_plugin"
# AssertionError
"test_report_collectors"
"test_report_crash_and_traceback"
];
pythonImportsCheck = [ "pytest_jsonreport" ];
meta = with lib; {
description = "Pytest plugin to report test results as JSON";
homepage = "https://github.com/numirias/pytest-json-report";
changelog = "https://github.com/numirias/pytest-json-report/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|