nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 agate,
4 buildPythonPackage,
5 fetchFromGitHub,
6 dbt-adapters,
7 dbt-common,
8 dbt-core,
9 hatchling,
10 psycopg2,
11}:
12
13buildPythonPackage rec {
14 pname = "dbt-postgres";
15 version = "1.9.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "dbt-labs";
20 repo = "dbt-postgres";
21 tag = "v${version}";
22 hash = "sha256-lywWf78rluX17D5bcfehHd7X18tAdw3HZ65v440jETc=";
23 };
24
25 build-system = [ hatchling ];
26
27 pythonRemoveDeps = [ "psycopg2-binary" ];
28
29 dependencies = [
30 agate
31 dbt-adapters
32 dbt-common
33 dbt-core
34 psycopg2
35 ];
36
37 # tests exist for the dbt tool but not for this package specifically
38 doCheck = false;
39
40 pythonImportsCheck = [ "dbt.adapters.postgres" ];
41
42 meta = {
43 description = "Plugin enabling dbt to work with a Postgres database";
44 homepage = "https://github.com/dbt-labs/dbt-core";
45 license = lib.licenses.asl20;
46 };
47}