blob: b2852ce6d2149dccb9bfed67a23aa702710cfc03 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, agate
, buildPythonPackage
, dbt-core
, psycopg2
, pythonOlder
, setuptools
}:
buildPythonPackage {
pname = "dbt-postgres";
pyproject = true;
inherit (dbt-core) version src;
disabled = pythonOlder "3.7";
sourceRoot = "${dbt-core.src.name}/plugins/postgres";
env.DBT_PSYCOPG2_NAME = "psycopg2";
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
agate
dbt-core
psycopg2
];
# tests exist for the dbt tool but not for this package specifically
doCheck = false;
pythonImportsCheck = [
"dbt.adapters.postgres"
];
meta = with lib; {
description = "Plugin enabling dbt to work with a Postgres database";
homepage = "https://github.com/dbt-labs/dbt-core";
license = licenses.asl20;
maintainers = with maintainers; [ tjni ];
};
}
|