diff options
Diffstat (limited to 'pkgs/development/python-modules/dalle-mini/default.nix')
-rw-r--r-- | pkgs/development/python-modules/dalle-mini/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dalle-mini/default.nix b/pkgs/development/python-modules/dalle-mini/default.nix new file mode 100644 index 000000000000..e6612a3cd2a7 --- /dev/null +++ b/pkgs/development/python-modules/dalle-mini/default.nix @@ -0,0 +1,53 @@ +{ lib +, buildPythonPackage +, fetchPypi +, einops +, emoji +, flax +, ftfy +, jax +, jaxlib +, pillow +, transformers +, unidecode +, wandb +}: + +buildPythonPackage rec { + pname = "dalle-mini"; + version = "0.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-Sbos44uWGnJLYMx/xy0wkyAJHlDhVIeOS7rnYt2W53w="; + }; + + format = "setuptools"; + + buildInputs = [ + jaxlib + ]; + + propagatedBuildInputs = [ + einops + emoji + flax + ftfy + jax + pillow + transformers + unidecode + wandb + ]; + + doCheck = false; # no upstream tests + + pythonImportsCheck = [ "dalle_mini" ]; + + meta = with lib; { + description = "Generate images from a text prompt"; + homepage = "https://github.com/borisdayma/dalle-mini"; + license = licenses.asl20; + maintainers = with maintainers; [ r-burns ]; + }; +} |