Merge pull request #312930 from bcdarwin/python312-pycm-unbreak

python312Packages.pycm: disable tests which don't have any numerical tolerance
This commit is contained in:
Weijia Wang
2024-05-20 00:19:19 +02:00
committed by GitHub
@@ -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"
];