Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dbt-snowflake / default.nix
bloba25ffaba5581b44235b131135e1737306b5e101b
1 { lib
2 , buildPythonPackage
3 , dbt-core
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 , snowflake-connector-python
9 }:
11 buildPythonPackage rec {
12   pname = "dbt-snowflake";
13   version = "1.7.3";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "dbt-labs";
20     repo = "dbt-snowflake";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-ksnLQdoXR8KVtYTFdlaWT8UYjAsLNyEVVap/QHtm+j8=";
23   };
25   build-system = [
26     setuptools
27   ];
29   dependencies = [
30     dbt-core
31     snowflake-connector-python
32   ] ++ snowflake-connector-python.optional-dependencies.secure-local-storage;
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   pytestFlagsArray = [
39     "tests/unit"
40   ];
42   pythonImportsCheck = [
43     "dbt.adapters.snowflake"
44   ];
46   meta = with lib; {
47     description = "Plugin enabling dbt to work with Snowflake";
48     homepage = "https://github.com/dbt-labs/dbt-snowflake";
49     changelog = "https://github.com/dbt-labs/dbt-snowflake/blob/${version}/CHANGELOG.md";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ tjni ];
52   };