From a5e5cfdd36564eb9452de586eb238fbbf7a8f6ae Mon Sep 17 00:00:00 2001 From: Raphael Borun Das Gupta Date: Tue, 29 Apr 2025 05:44:55 +0200 Subject: [PATCH] =?UTF-8?q?python3Packages.pytest-tap:=203.3=20=E2=86=92?= =?UTF-8?q?=203.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Karel Kočí --- .../python-modules/pytest-tap/default.nix | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pytest-tap/default.nix b/pkgs/development/python-modules/pytest-tap/default.nix index 91513ca894e2..d603c17bc5a1 100644 --- a/pkgs/development/python-modules/pytest-tap/default.nix +++ b/pkgs/development/python-modules/pytest-tap/default.nix @@ -2,6 +2,8 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, + hatchling, pythonOlder, pytest, tappy, @@ -10,29 +12,35 @@ buildPythonPackage rec { pname = "pytest-tap"; - version = "3.3"; - format = "setuptools"; + version = "3.5"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "python-tap"; repo = "pytest-tap"; rev = "v${version}"; - sha256 = "R0RSdKTyJYGq+x0+ut4pJEywTGNgGp/ps36ZaH5dyY4="; + hash = "sha256-IuVtH1hrynbFDmz7IZ6vef9bAwl8L1eqR9WYQVL6CCA="; }; + patches = [ + (fetchpatch { + # see https://github.com/python-tap/pytest-tap/pull/105 + name = "missing-package-in-wheel.patch"; + url = "https://github.com/python-tap/pytest-tap/commit/056a44a632b1af19d9ba4b5044768bde3dd6a764.patch"; + hash = "sha256-P52NqgXtnO2SthDwVbT+NVPeBNhjGS/8Vsbe/WLCc3A="; + }) + ]; + + build-system = [ hatchling ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ tappy ]; nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # Fixed in 4ed0138bf659c348b6dfb8bb701ae1989625d3d8 and hopefully in next release - "test_unittest_expected_failure" - ]; - pythonImportsCheck = [ "pytest_tap" ]; meta = with lib; {