diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-json-report/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pytest-json-report/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-json-report/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-json-report/default.nix new file mode 100644 index 000000000000..2b89fe715921 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pytest-json-report/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest +, pytest-metadata +, pytest-xdist +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pytest-json-report"; + version = "1.4.1"; + + src = fetchFromGitHub { + owner = "numirias"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-OS9ASUp9iJ12Ovr931RQU/DHEAXqbgcRMCBP4h+GAhk="; + }; + + buildInputs = [ + pytest + ]; + + propagatedBuildInputs = [ + pytest-metadata + ]; + + checkInputs = [ + pytest-xdist + pytestCheckHook + ]; + + disabledTests = [ + # pytest-flaky is not available at the moment + "test_bug_31" + ]; + + pythonImportsCheck = [ + "pytest_jsonreport" + ]; + + meta = with lib; { + description = "Pytest plugin to report test results as JSON"; + homepage = "https://github.com/numirias/pytest-json-report"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |