Unverified Commit f5cb6bf2 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.optuna: use finalAttrs (#495650)

parents 24373aad 79c55f06
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@
  versionCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "optuna";
  version = "4.7.0";
  pyproject = true;
@@ -49,7 +49,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "optuna";
    repo = "optuna";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-SbEmJ4V4pyxMUx3GPMqBUDLq4AslwichbZNmNwmNm0o=";
  };

@@ -105,7 +105,7 @@ buildPythonPackage rec {
    versionCheckHook
  ]
  ++ fakeredis.optional-dependencies.lua
  ++ optional-dependencies.optional;
  ++ finalAttrs.passthru.optional-dependencies.optional;

  disabledTests = [
    # ValueError: Transform failed with error code 525: error creating static canvas/context for image server
@@ -143,9 +143,9 @@ buildPythonPackage rec {
  meta = {
    description = "Hyperparameter optimization framework";
    homepage = "https://optuna.org/";
    changelog = "https://github.com/optuna/optuna/releases/tag/${src.tag}";
    changelog = "https://github.com/optuna/optuna/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ natsukium ];
    mainProgram = "optuna";
  };
}
})