python3Packages.cma: 4.4.0 -> 4.4.1 ; python312Packages.pymoo: disable test that fails on Darwin due to numeric precision differences (python 3.12 only) (#471495)

This commit is contained in:
kirillrdy
2025-12-21 22:04:55 +00:00
committed by GitHub
2 changed files with 9 additions and 3 deletions
@@ -15,14 +15,14 @@
buildPythonPackage rec {
pname = "cma";
version = "4.4.0";
version = "4.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "CMA-ES";
repo = "pycma";
tag = "r${version}";
hash = "sha256-2uCn5CZma9RLK8zaaPhiQCqnK+2dWgLNr5+Ck2cV6vI=";
hash = "sha256-06QPs2hbrIbrPRWidlZYf0jcMGdcDYfg89Ad+4IX/Co=";
};
# setuptools.errors.PackageDiscoveryError:
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
@@ -62,7 +63,6 @@ buildPythonPackage rec {
"file://${pymoo_data}/"
'';
pythonRelaxDeps = [ "cma" ];
pythonRemoveDeps = [ "alive-progress" ];
build-system = [
@@ -114,10 +114,16 @@ buildPythonPackage rec {
# AttributeError: 'ZDT3' object has no attribute 'elementwise'
"test_kktpm_correctness"
];
disabledTestPaths = [
# sensitive to float precision
"tests/algorithms/test_no_modfication.py"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# sensitive to float precision
"tests/misc/test_kktpm.py::test_kktpm_correctness[zdt3-params3]"
];
# Avoid crashing sandboxed build on macOS
env.MATPLOTLIBRC = writeText "" ''
backend: Agg