Files
nixpkgs/pkgs/development/python-modules/supabase/default.nix
2025-08-29 19:16:50 -07:00

58 lines
990 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
gotrue,
postgrest,
realtime,
storage3,
supafunc,
httpx,
pytestCheckHook,
python-dotenv,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "supabase";
version = "2.17.0";
pyproject = true;
src = fetchFromGitHub {
owner = "supabase";
repo = "supabase-py";
rev = "v${version}";
hash = "sha256-psfDs5BCtUjyPsfLwksNvzLmUKmYDvmxKIDPQE/NmQU=";
};
build-system = [ poetry-core ];
# FIXME remove for supabase >= 2.18.0
pythonRelaxDeps = true;
dependencies = [
postgrest
realtime
gotrue
httpx
storage3
supafunc
];
nativeBuildInputs = [
pytestCheckHook
python-dotenv
pytest-asyncio
];
pythonImportsCheck = [ "supabase" ];
meta = {
homepage = "https://github.com/supabase/supabase-py";
license = lib.licenses.mit;
description = "Supabas client for Python";
maintainers = with lib.maintainers; [ siegema ];
};
}