1import ./make-test-python.nix ({ pkgs, ...} : {
2 name = "postgis";
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ lsix ]; # TODO: Who's the maintener now?
5 };
6
7 nodes = {
8 master =
9 { pkgs, ... }:
10
11 {
12 services.postgresql = let mypg = pkgs.postgresql_15; in {
13 enable = true;
14 package = mypg;
15 extraPlugins = with mypg.pkgs; [
16 apache_datasketches
17 ];
18 };
19 };
20 };
21
22 testScript = ''
23 start_all()
24 master.wait_for_unit("postgresql")
25 master.sleep(10) # Hopefully this is long enough!!
26 master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION datasketches;'")
27 master.succeed("sudo -u postgres psql -c 'SELECT hll_sketch_to_string(hll_sketch_build(1));'")
28 '';
29})