diff --git a/pkgs/development/python-modules/pynetdicom/default.nix b/pkgs/development/python-modules/pynetdicom/default.nix index fb36063f4733..6f0407aacdff 100644 --- a/pkgs/development/python-modules/pynetdicom/default.nix +++ b/pkgs/development/python-modules/pynetdicom/default.nix @@ -7,6 +7,7 @@ pydicom, pyfakefs, pytestCheckHook, + pythonAtLeast, pythonOlder, setuptools, sqlalchemy, @@ -74,11 +75,16 @@ buildPythonPackage rec { disabledTestPaths = [ # Ignore apps tests "pynetdicom/apps/tests/" + ] ++ lib.optionals (pythonAtLeast "3.12") [ + # https://github.com/pydicom/pynetdicom/issues/924 + "pynetdicom/tests/test_assoc.py" + "pynetdicom/tests/test_transport.py" ]; pythonImportsCheck = [ "pynetdicom" ]; pytestFlagsArray = [ + # https://github.com/pydicom/pynetdicom/issues/923 "-W" "ignore::pytest.PytestRemovedIn8Warning" ];