1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, dbt-core
5, pytestCheckHook
6, snowflake-connector-python
7}:
8
9buildPythonPackage rec {
10 pname = "dbt-snowflake";
11 version = "1.6.2";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "dbt-labs";
16 repo = pname;
17 rev = "refs/tags/v${version}";
18 hash = "sha256-AOO3VbU1R3/snH7U7K9XXokBGXtf9Udpv7eR5HCBxss=";
19 };
20
21 propagatedBuildInputs = [
22 dbt-core
23 snowflake-connector-python
24 ] ++ snowflake-connector-python.optional-dependencies.secure-local-storage;
25
26 nativeCheckInputs = [
27 pytestCheckHook
28 ];
29
30 pytestFlagsArray = [
31 "tests/unit"
32 ];
33
34 pythonImportsCheck = [
35 "dbt.adapters.snowflake"
36 ];
37
38 meta = with lib; {
39 description = "Plugin enabling dbt to work with Snowflake";
40 homepage = "https://github.com/dbt-labs/dbt-snowflake";
41 changelog = "https://github.com/dbt-labs/dbt-snowflake/blob/${version}/CHANGELOG.md";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ tjni ];
44 };
45}