diff --git a/pkgs/by-name/op/open-webui/package.nix b/pkgs/by-name/op/open-webui/package.nix index fd35e2dbc70e..a51cb2a74d5b 100644 --- a/pkgs/by-name/op/open-webui/package.nix +++ b/pkgs/by-name/op/open-webui/package.nix @@ -7,19 +7,19 @@ }: let pname = "open-webui"; - version = "0.5.4"; + version = "0.5.5"; src = fetchFromGitHub { owner = "open-webui"; repo = "open-webui"; tag = "v${version}"; - hash = "sha256-vlaJv4CbhjbJbiNZHKsedS2vBXp44oE/7ZALgkPASHI="; + hash = "sha256-4g+dt1dbN/ulERW3WLjTJ0++JD5NLREXjGu6ngPdxAI="; }; frontend = buildNpmPackage { inherit pname version src; - npmDepsHash = "sha256-g47tK6BC6CE0hqdZbToQMB5QeNdufhO12xPrAjbfMTk="; + npmDepsHash = "sha256-cIocYy91JfcZM35ZiT6onEsz89qAZ+7jCjpjg6lV4pc="; # Disabling `pyodide:fetch` as it downloads packages during `buildPhase` # Until this is solved, running python packages from the browser will not work. @@ -89,19 +89,21 @@ python312.pkgs.buildPythonApplication rec { flask-cors fpdf2 ftfy + gcp-storage-emulator google-api-python-client google-auth-httplib2 google-auth-oauthlib + google-cloud-storage google-generativeai googleapis-common-protos iso-639 langchain - langchain-chroma langchain-community langdetect langfuse ldap3 markdown + moto nltk openai opencv-python-headless @@ -137,6 +139,7 @@ python312.pkgs.buildPythonApplication rec { sentence-transformers soundfile tiktoken + transformers unstructured uvicorn validators diff --git a/pkgs/development/python-modules/gcp-storage-emulator/default.nix b/pkgs/development/python-modules/gcp-storage-emulator/default.nix new file mode 100644 index 000000000000..ab67535edb8f --- /dev/null +++ b/pkgs/development/python-modules/gcp-storage-emulator/default.nix @@ -0,0 +1,55 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + flake8, + fs, + google-cloud-storage, + google-crc32c, + pytest, + pytestCheckHook, + pytest-cov, + requests, +}: + +buildPythonPackage rec { + pname = "gcp-storage-emulator"; + version = "2024.08.03"; + pyproject = true; + + src = fetchFromGitHub { + owner = "oittaa"; + repo = "gcp-storage-emulator"; + rev = "v${version}"; + hash = "sha256-Lp9Wvod0wSE2+cnvLXguhagT30ax9TivyR8gC/kB7w0="; + }; + + build-system = [ + setuptools + wheel + ]; + + nativeCheckInputs = [ + flake8 + fs + google-cloud-storage + google-crc32c + pytest + pytestCheckHook + pytest-cov + requests + ]; + + pythonImportsCheck = [ + "gcp_storage_emulator" + ]; + + meta = { + description = "Local emulator for Google Cloud Storage"; + homepage = "https://github.com/oittaa/gcp-storage-emulator"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ drupol ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aac99f5adafc..a7c82f7c4e0d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5083,6 +5083,8 @@ self: super: with self; { gcovr = callPackage ../development/python-modules/gcovr { }; + gcp-storage-emulator = callPackage ../development/python-modules/gcp-storage-emulator { }; + gcsa = callPackage ../development/python-modules/gcsa { }; gcsfs = callPackage ../development/python-modules/gcsfs { };