From c01aa35e643bc5d634b50741d026a595f1aaef67 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Sun, 19 May 2024 12:17:49 -0400 Subject: [PATCH] python312Packages.pycm: disable tests which don't have any numerical tolerance --- pkgs/development/python-modules/pycm/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pycm/default.nix b/pkgs/development/python-modules/pycm/default.nix index 58570c177902..6b9bfac5d7d0 100644 --- a/pkgs/development/python-modules/pycm/default.nix +++ b/pkgs/development/python-modules/pycm/default.nix @@ -32,18 +32,22 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # Minor tolerance issues with Python 3.12; should be fixed in next release + # (see https://github.com/sepandhaghighi/pycm/pull/528) + "verified_test" + "function_test" + ]; + postPatch = '' # Remove a trivial dependency on the author's `art` Python ASCII art library rm pycm/__main__.py # Also depends on python3Packages.notebook rm Otherfiles/notebook_check.py substituteInPlace setup.py \ - --replace '=get_requires()' '=[]' + --replace-fail '=get_requires()' '=[]' ''; - # https://github.com/sepandhaghighi/pycm/issues/488 - pytestFlagsArray = [ "Test" ]; - pythonImportsCheck = [ "pycm" ];