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";