From 6b1aac25eb54aee91a469b0f9d4b159bcbc6128c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Aug 2025 13:30:05 +0200 Subject: [PATCH] python313Packages.supafunc: refactor --- .../python-modules/supafunc/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/supafunc/default.nix b/pkgs/development/python-modules/supafunc/default.nix index 9d56f63351d9..8dfd5301fb06 100644 --- a/pkgs/development/python-modules/supafunc/default.nix +++ b/pkgs/development/python-modules/supafunc/default.nix @@ -2,10 +2,9 @@ lib, buildPythonPackage, fetchPypi, + httpx, poetry-core, strenum, - httpx, - h2, }: buildPythonPackage rec { @@ -18,23 +17,24 @@ buildPythonPackage rec { hash = "sha256-ReTVAIVBZ8JhUVxD96NjMg4KkoEYGC/okyre/d7dtUU="; }; + build-system = [ poetry-core ]; + dependencies = [ strenum httpx - h2 - ]; + ] + ++ httpx.optional-dependencies.http2; - build-system = [ poetry-core ]; + # Tests are not in PyPI package and source is not tagged + doCheck = false; pythonImportsCheck = [ "supafunc" ]; - # tests are not in pypi package - doCheck = false; - meta = { - homepage = "https://github.com/supabase/functions-py"; - license = lib.licenses.mit; description = "Library for Supabase Functions"; + homepage = "https://github.com/supabase/functions-py"; + changelog = "https://github.com/supabase/functions-py/blob/v${version}/CHANGELOG.md"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ siegema ]; }; }