From d24d6449a0cf42fb70fd64b173ab5aedb1254e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 2 Sep 2025 01:17:32 +0200 Subject: [PATCH] python313Packages.osc-lib: fix tests on darwin --- pkgs/development/python-modules/osc-lib/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/osc-lib/default.nix b/pkgs/development/python-modules/osc-lib/default.nix index 7f66de96733c..4c58dffea4cf 100644 --- a/pkgs/development/python-modules/osc-lib/default.nix +++ b/pkgs/development/python-modules/osc-lib/default.nix @@ -11,6 +11,7 @@ requests, requests-mock, setuptools, + stdenv, stestr, stevedore, }: @@ -27,8 +28,7 @@ buildPythonPackage rec { hash = "sha256-P1f0wwtOo0LKbc3ay0Vh8GGi/2nRXcTr9JOByc2nlZY="; }; - # fake version to make pbr.packaging happy and not reject it... - PBR_VERSION = version; + env.PBR_VERSION = version; build-system = [ pbr @@ -51,7 +51,13 @@ buildPythonPackage rec { ]; checkPhase = '' - stestr run + stestr run -e <(echo " + ${lib.optionalString stdenv.hostPlatform.isDarwin '' + osc_lib.tests.test_shell.TestShellCli.test_shell_args_cloud_public + osc_lib.tests.test_shell.TestShellCli.test_shell_args_precedence + osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_1 + osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_2 + ''}") ''; pythonImportsCheck = [ "osc_lib" ];