1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 pytest-metadata, 7 pytest-xdist, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "pytest-json-report"; 15 version = "1.5.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "numirias"; 22 repo = "pytest-json-report"; 23 tag = "v${version}"; 24 hash = "sha256-hMB/atDuo7CjwhHFUOxVfgJ7Qp4AA9J428iv7hyQFcs="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 buildInputs = [ pytest ]; 30 31 dependencies = [ pytest-metadata ]; 32 33 nativeCheckInputs = [ 34 pytest-xdist 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 # pytest-flaky is not available at the moment 40 "test_bug_31" 41 "test_environment_via_metadata_plugin" 42 # AssertionError 43 "test_report_collectors" 44 "test_report_crash_and_traceback" 45 ]; 46 47 pythonImportsCheck = [ "pytest_jsonreport" ]; 48 49 meta = with lib; { 50 description = "Pytest plugin to report test results as JSON"; 51 homepage = "https://github.com/numirias/pytest-json-report"; 52 changelog = "https://github.com/numirias/pytest-json-report/releases/tag/v${version}"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}