Unverified Commit 886af250 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python3Packages.dalle-mini: drop (#494437)

parents a8af21e4 43814690
Loading
Loading
Loading
Loading
+0 −76
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchpatch,

  # dependencies
  einops,
  emoji,
  flax,
  ftfy,
  jax,
  jaxlib,
  orbax-checkpoint,
  pillow,
  pydantic,
  transformers,
  unidecode,
  wandb,
}:

buildPythonPackage rec {
  pname = "dalle-mini";
  version = "0.1.5";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-k4XILjNNz0FPcAzwPEeqe5Lj24S2Y139uc9o/1IUS1c=";
  };

  # Fix incompatibility with the latest JAX versions
  # See https://github.com/borisdayma/dalle-mini/pull/338
  patches = [
    (fetchpatch {
      url = "https://github.com/borisdayma/dalle-mini/pull/338/commits/22ffccf03f3e207731a481e3e42bdb564ceebb69.patch";
      hash = "sha256-LIOyfeq/oVYukG+1rfy5PjjsJcjADCjn18x/hVmLkPY=";
    })
  ];

  pythonRelaxDeps = [
    "transformers"
    "jax"
    "flax"
  ];

  pythonRemoveDeps = [
    "orbax"
  ];

  dependencies = [
    einops
    emoji
    flax
    ftfy
    jax
    jaxlib
    orbax-checkpoint
    pillow
    pydantic
    transformers
    unidecode
    wandb
  ];

  doCheck = false; # no upstream tests

  pythonImportsCheck = [ "dalle_mini" ];

  meta = {
    description = "Generate images from a text prompt";
    homepage = "https://github.com/borisdayma/dalle-mini";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ r-burns ];
  };
}
+0 −1
Original line number Diff line number Diff line
@@ -218,7 +218,6 @@
    "python3Packages.curated-transformers",
    "python3Packages.cut-cross-entropy",
    "python3Packages.cvxpy",
    "python3Packages.dalle-mini",
    "python3Packages.dask-mpi",
    "python3Packages.dctorch",
    "python3Packages.deepdish",
+1 −0
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ mapAliases {
  configshell = throw "'configshell' has been renamed to/replaced by 'configshell-fb'"; # Converted to throw 2025-10-29
  cx_Freeze = throw "'cx_Freeze' has been renamed to/replaced by 'cx-freeze'"; # Converted to throw 2025-10-29
  cx_oracle = throw "'cx_oracle' has been renamed to/replaced by 'cx-oracle'"; # Converted to throw 2025-10-29
  dalle-mini = throw "'dalle-mini' has been removed due to lack of upstream maintenance"; # added 2026-02-26
  datatable = throw "'datatable' has been removed due to lack of upstream maintenance"; # added 2026-02-02
  dateutil = throw "'dateutil' has been renamed to/replaced by 'python-dateutil'"; # Converted to throw 2025-10-29
  debian = throw "'debian' has been renamed to/replaced by 'python-debian'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -3509,8 +3509,6 @@ self: super: with self; {
  daiquiri = callPackage ../development/python-modules/daiquiri { };
  dalle-mini = callPackage ../development/python-modules/dalle-mini { };
  daltonlens = callPackage ../development/python-modules/daltonlens { };
  daphne = callPackage ../development/python-modules/daphne { };