Commit 62c60b6e authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.mhcflurry: fix for python 3.13

parent 7a690fd4
Loading
Loading
Loading
Loading
+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