blob: 2a968331608fc07a24bf723b3e28d2277ee421d4 (
plain)
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,
boto3,
buildPythonPackage,
dbt-core,
dbt-postgres,
fetchFromGitHub,
pytestCheckHook,
redshift-connector,
setuptools,
}:
buildPythonPackage rec {
pname = "dbt-redshift";
version = "1.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-redshift";
tag = "v${version}";
hash = "sha256-ayt5KRH3jAoi7k+0yfk1ZSqG4qsM+zny8tDnWOWO5oA=";
};
pythonRelaxDeps = [
"boto3"
"redshift-connector"
];
build-system = [ setuptools ];
dependencies = [
agate
boto3
dbt-core
dbt-postgres
redshift-connector
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "dbt.adapters.redshift" ];
meta = {
description = "Plugin enabling dbt to work with Amazon Redshift";
homepage = "https://github.com/dbt-labs/dbt-redshift";
changelog = "https://github.com/dbt-labs/dbt-redshift/blob/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
};
}
|