python311Packages.psrpcore: disable failing tests on Python 3.11

This commit is contained in:
Fabian Affolter 2023-02-28 11:12:47 +01:00
parent 95df4033fc
commit f3a39f218a

View File

@ -3,6 +3,7 @@
, cryptography , cryptography
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, pythonAtLeast
, pythonOlder , pythonOlder
, xmldiff , xmldiff
}: }:
@ -30,11 +31,17 @@ buildPythonPackage rec {
xmldiff xmldiff
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
"psrpcore" "psrpcore"
]; ];
disabledTests = lib.optionals (pythonAtLeast "3.11") [
# https://github.com/jborean93/psrpcore/issues/22
"test_remote_stream_options"
"test_ps_flags"
];
meta = with lib; { meta = with lib; {
description = "Library for the PowerShell Remoting Protocol (PSRP)"; description = "Library for the PowerShell Remoting Protocol (PSRP)";
homepage = "https://github.com/jborean93/psrpcore"; homepage = "https://github.com/jborean93/psrpcore";