python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / tools / security / gotrue / supabase.nix
blobe8e191baceeb50d04d99a37c2b8a1caea070d927
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   testers,
6   gotrue-supabase,
7 }:
9 buildGoModule rec {
10   pname = "auth";
11   version = "2.168.0";
13   src = fetchFromGitHub {
14     owner = "supabase";
15     repo = "auth";
16     rev = "v${version}";
17     hash = "sha256-XPfqb1kO4sJbREZhCJ/FMTNeNtooqSWQJvNPjjS/gAE=";
18   };
20   vendorHash = "sha256-em1dBnNHsVPI7owd2gjERcJnrQbiVtZGtIqnFyker6M=";
22   ldflags = [
23     "-s"
24     "-w"
25     "-X github.com/supabase/auth/internal/utilities.Version=${version}"
26   ];
28   # integration tests require network to connect to postgres database
29   doCheck = false;
31   passthru.tests.version = testers.testVersion {
32     package = gotrue-supabase;
33     command = "auth version";
34     inherit version;
35   };
37   meta = with lib; {
38     homepage = "https://github.com/supabase/auth";
39     description = "JWT based API for managing users and issuing JWT tokens";
40     mainProgram = "auth";
41     changelog = "https://github.com/supabase/auth/releases/tag/v${version}";
42     license = licenses.mit;
43     maintainers = with maintainers; [ urandom ];
44   };