From 747b4512075d41e637933b3d2c86df02ff68cf24 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 21 Jan 2026 02:01:54 +0100 Subject: [PATCH] python3Packages.expandvar: fix pytest9 compat --- .../python-modules/expandvars/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/expandvars/default.nix b/pkgs/development/python-modules/expandvars/default.nix index cfd3079f63a4..80db6a8ade05 100644 --- a/pkgs/development/python-modules/expandvars/default.nix +++ b/pkgs/development/python-modules/expandvars/default.nix @@ -2,12 +2,14 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch, # build-system hatchling, # tests pytestCheckHook, + pytest-cov-stub, }: buildPythonPackage rec { @@ -20,11 +22,22 @@ buildPythonPackage rec { hash = "sha256-mK3YJot2Df7kV73hwXv3RXlf3rwit92rdf0yeGU/HgU="; }; + patches = [ + (fetchpatch { + name = "pytest9-compat.patch"; + url = "https://github.com/sayanarijit/expandvars/commit/0ab5747185be9135b0711e72fc64dfa6a33f3fd3.patch"; + hash = "sha256-raO5dGbcXb0adUCeHmnWp49vpIMllRW9Ow8rG4OH+Hs="; + }) + ]; + nativeBuildInputs = [ hatchling ]; pythonImportsCheck = [ "expandvars" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + ]; meta = { description = "Expand system variables Unix style";