Unverified Commit 5878a674 authored by Yt's avatar Yt Committed by GitHub
Browse files

python3Packages.keras: unmark as broken (#446771)

parents 90f80084 dfb46856
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -82,7 +82,14 @@ buildPythonPackage rec {
    transforms3d
  ];

  disabledTests = lib.optionals stdenv.hostPlatform.isAarch64 [
  disabledTests = [
    # AttributeError: 'functools.partial' object has no attribute 'value'
    "testModelEncoding0"
    "testModelEncoding1"
    "testTrain"
    "testTrainDomainRandomize"
  ]
  ++ lib.optionals stdenv.hostPlatform.isAarch64 [
    # Flaky:
    # AssertionError: Array(-0.00135638, dtype=float32) != 0.0 within 0.001 delta (Array(0.00135638, dtype=float32) difference)
    "test_pendulum_period2"
+0 −2
Original line number Diff line number Diff line
@@ -214,7 +214,5 @@ buildPythonPackage rec {
    changelog = "https://github.com/keras-team/keras/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
    # Not yet released for tensorflow >= 2.20.0
    broken = lib.versionAtLeast tensorflow.version "2.20";
  };
}
+8 −0
Original line number Diff line number Diff line
@@ -31,6 +31,14 @@ buildPythonPackage rec {
    hash = "sha256-TNb3oKZvgBuXoSwsTuEJjFKEVZyHynazuPInj7wVKs8=";
  };

  # pipes has been removed in python 3.13
  postPatch = ''
    substituteInPlace mhcflurry/downloads.py \
      --replace-fail \
        "from pipes import quote" \
        "from shlex import quote"
  '';

  # keras and tensorflow are not in the official setup.py requirements but are required for the CLI utilities to run.
  dependencies = [
    appdirs