blob: f3503eac82d0239cb6139e9160b6cddc4b015fa0 (
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
46
47
48
49
50
51
52
53
|
{
lib,
agate,
buildPythonPackage,
fetchFromGitHub,
dbt-adapters,
dbt-common,
dbt-core,
hatchling,
psycopg2,
pythonOlder,
}:
buildPythonPackage rec {
pname = "dbt-postgres";
version = "1.8.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-postgres";
rev = "refs/tags/v${version}";
hash = "sha256-E7Y2lY8aCiAZx5sLWwpOBLTrdOsCQAdWWJTvR2jGOaA=";
};
env.DBT_PSYCOPG2_NAME = "psycopg2";
build-system = [ hatchling ];
pythonRemoveDeps = [ "psycopg2-binary" ];
dependencies = [
agate
dbt-adapters
dbt-common
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 ];
};
}
|