summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-11-13 06:43:42 -0500
committerGitHub <noreply@github.com>2023-11-13 06:43:42 -0500
commitc2419655330d7aedad6c77d7602b9be79be19835 (patch)
treeaf0f8c627a28d27cc7a96a2685a160315ff6d7b6
parent4944d3f313e18e31845a54ede2169cc47d8ede97 (diff)
parent08ef1603a520d6d58a5b1b1f63085509cd578f29 (diff)
Merge pull request #267191 from fabaff/pytest-json-report-fix
python311Packages.pytest-json-report: disable failing test
-rw-r--r--pkgs/development/python-modules/pytest-json-report/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/pytest-json-report/default.nix b/pkgs/development/python-modules/pytest-json-report/default.nix
index 335f2de30a84..f3b556699e8b 100644
--- a/pkgs/development/python-modules/pytest-json-report/default.nix
+++ b/pkgs/development/python-modules/pytest-json-report/default.nix
@@ -6,22 +6,27 @@
, pytest-xdist
, pytestCheckHook
, pythonOlder
+, setuptools
}:
buildPythonPackage rec {
pname = "pytest-json-report";
version = "1.5.0";
- format = "setuptools";
+ pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "numirias";
- repo = pname;
- rev = "v${version}";
+ repo = "pytest-json-report";
+ rev = "refs/tags/v${version}";
hash = "sha256-hMB/atDuo7CjwhHFUOxVfgJ7Qp4AA9J428iv7hyQFcs=";
};
+ nativeBuildInputs = [
+ setuptools
+ ];
+
buildInputs = [
pytest
];
@@ -38,6 +43,7 @@ buildPythonPackage rec {
disabledTests = [
# pytest-flaky is not available at the moment
"test_bug_31"
+ "test_environment_via_metadata_plugin"
];
pythonImportsCheck = [
@@ -47,6 +53,7 @@ buildPythonPackage rec {
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 ];
};