python314Packages.optuna: fix tests (#546878)

This commit is contained in:
Sandro
2026-07-30 15:13:33 +00:00
committed by GitHub
@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
@@ -54,6 +55,14 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-BoRy5LSzMl9w5KS9BW1uHUTcEj1ZyYp4nWykPgq6ckI=";
};
patches = [
# Fix test for pytest logger behavior changes
(fetchpatch {
url = "https://github.com/optuna/optuna/commit/ba57cff4a1990f3943cf250edc32d34e6ddd436d.patch";
hash = "sha256-SGsZcl+F62JN7LEAfmyanswl/tUZfZv4doh3lS5JSkQ=";
})
];
build-system = [
setuptools
];