2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest,
|
|
|
|
pytest-metadata,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-12-21 02:18:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-json-report";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.5.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numirias";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "pytest-json-report";
|
|
|
|
rev = "refs/tags/v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-hMB/atDuo7CjwhHFUOxVfgJ7Qp4AA9J428iv7hyQFcs=";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs = [ pytest ];
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [ pytest-metadata ];
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-21 02:18:32 +00:00
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# pytest-flaky is not available at the moment
|
|
|
|
"test_bug_31"
|
2023-11-16 04:20:00 +00:00
|
|
|
"test_environment_via_metadata_plugin"
|
2024-05-15 15:35:15 +00:00
|
|
|
# AssertionError
|
|
|
|
"test_report_collectors"
|
|
|
|
"test_report_crash_and_traceback"
|
2021-12-21 02:18:32 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pytest_jsonreport" ];
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin to report test results as JSON";
|
|
|
|
homepage = "https://github.com/numirias/pytest-json-report";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/numirias/pytest-json-report/releases/tag/v${version}";
|
2021-12-21 02:18:32 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|