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