From d4471d8b19c464af044e044ba0f029ef110d252a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 2 Oct 2023 07:05:30 +0000 Subject: [PATCH 1/3] python310Packages.pytest-repeat: 0.9.1 -> 0.9.2 --- pkgs/development/python-modules/pytest-repeat/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-repeat/default.nix b/pkgs/development/python-modules/pytest-repeat/default.nix index 9bd2ee22ad81..45a2b46868ae 100644 --- a/pkgs/development/python-modules/pytest-repeat/default.nix +++ b/pkgs/development/python-modules/pytest-repeat/default.nix @@ -7,11 +7,11 @@ buildPythonPackage rec { pname = "pytest-repeat"; - version = "0.9.1"; + version = "0.9.2"; src = fetchPypi { inherit pname version; - sha256 = "5cd3289745ab3156d43eb9c8e7f7d00a926f3ae5c9cf425bec649b2fe15bad5b"; + sha256 = "sha256-eWc0Ra6ZruMzuBHH0AN660CPkzuImDdf8vT/8eO6aGs="; }; nativeBuildInputs = [ From 67aa71bfb05b977801cda1a17a621057e924048d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Oct 2023 09:14:48 +0200 Subject: [PATCH 2/3] python310Packages.pytest-repeat: add changelog to meta --- pkgs/development/python-modules/pytest-repeat/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/pytest-repeat/default.nix b/pkgs/development/python-modules/pytest-repeat/default.nix index 45a2b46868ae..3c322a0a7256 100644 --- a/pkgs/development/python-modules/pytest-repeat/default.nix +++ b/pkgs/development/python-modules/pytest-repeat/default.nix @@ -29,6 +29,7 @@ buildPythonPackage rec { meta = with lib; { description = "Pytest plugin for repeating tests"; homepage = "https://github.com/pytest-dev/pytest-repeat"; + changelog = "https://github.com/pytest-dev/pytest-repeat/blob/v${version}/CHANGES.rst"; license = licenses.mpl20; maintainers = with maintainers; [ ]; }; From d5ecd32ba115269c3d9fdf208b5cb7c2873601be Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Oct 2023 09:19:16 +0200 Subject: [PATCH 3/3] python311Packages.pytest-repeat: add format - disable on unsupported Python releases - add pythonImportsCheck - switch to pytestCheckHook --- .../python-modules/pytest-repeat/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pytest-repeat/default.nix b/pkgs/development/python-modules/pytest-repeat/default.nix index 3c322a0a7256..7db1992d5f85 100644 --- a/pkgs/development/python-modules/pytest-repeat/default.nix +++ b/pkgs/development/python-modules/pytest-repeat/default.nix @@ -1,30 +1,39 @@ { lib , buildPythonPackage , fetchPypi -, setuptools-scm , pytest +, pytestCheckHook +, pythonOlder +, setuptools-scm }: buildPythonPackage rec { pname = "pytest-repeat"; version = "0.9.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-eWc0Ra6ZruMzuBHH0AN660CPkzuImDdf8vT/8eO6aGs="; + hash = "sha256-eWc0Ra6ZruMzuBHH0AN660CPkzuImDdf8vT/8eO6aGs="; }; nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ + buildInputs = [ pytest ]; - checkPhase = '' - pytest - ''; + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pytest_repeat" + ]; meta = with lib; { description = "Pytest plugin for repeating tests";