From c8e0b7876860bfb8f5795c820ec8315bc0fd9f59 Mon Sep 17 00:00:00 2001 From: Siege <15473103+Siegema@users.noreply.github.com> Date: Sun, 13 Apr 2025 12:52:31 +0000 Subject: [PATCH] storage3: init at 0.12.0 --- .../python-modules/storage3/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/storage3/default.nix diff --git a/pkgs/development/python-modules/storage3/default.nix b/pkgs/development/python-modules/storage3/default.nix new file mode 100644 index 000000000000..f022c39ccf80 --- /dev/null +++ b/pkgs/development/python-modules/storage3/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + python-dateutil, + httpx, + h2, + deprecation, +}: + +buildPythonPackage rec { + pname = "storage3"; + version = "0.12.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "supabase"; + repo = "storage-py"; + rev = "v${version}"; + hash = "sha256-3Z+j9n/seL1ZuB1djOVpA6Qci/Ygi9g8g2lLQGKRUHM="; + }; + + dependencies = [ + python-dateutil + httpx + h2 + deprecation + ]; + + build-system = [ poetry-core ]; + + pythonImportCheck = [ "storage3" ]; + + # tests fail due to mock server not starting + + meta = { + homepage = "https://github.com/supabase/storage-py"; + license = lib.licenses.mit; + description = "Supabase Storage client for Python."; + maintainers = with lib.maintainers; [ siegema ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3640d4391b54..61e31802fbc1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17328,6 +17328,8 @@ self: super: with self; { stopit = callPackage ../development/python-modules/stopit { }; + storage3 = callPackage ../development/python-modules/storage3 { }; + stp = toPythonModule (pkgs.stp.override { python3 = self.python; }); stransi = callPackage ../development/python-modules/stransi { };