From f3a39f218ae33cbebb6f26601bc083f8e1e22ee4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Feb 2023 11:12:47 +0100 Subject: [PATCH] python311Packages.psrpcore: disable failing tests on Python 3.11 --- pkgs/development/python-modules/psrpcore/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/psrpcore/default.nix b/pkgs/development/python-modules/psrpcore/default.nix index 131d49f4ac93..fc0517f0df84 100644 --- a/pkgs/development/python-modules/psrpcore/default.nix +++ b/pkgs/development/python-modules/psrpcore/default.nix @@ -3,6 +3,7 @@ , cryptography , fetchFromGitHub , pytestCheckHook +, pythonAtLeast , pythonOlder , xmldiff }: @@ -30,11 +31,17 @@ buildPythonPackage rec { xmldiff ]; - pythonImportsCheck = [ "psrpcore" ]; + disabledTests = lib.optionals (pythonAtLeast "3.11") [ + # https://github.com/jborean93/psrpcore/issues/22 + "test_remote_stream_options" + "test_ps_flags" + ]; + + meta = with lib; { description = "Library for the PowerShell Remoting Protocol (PSRP)"; homepage = "https://github.com/jborean93/psrpcore";