diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-13 23:00:46 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-23 11:03:48 -0700 |
commit | 859e95e2bdd9889fd534d8edf64be99313a2361e (patch) | |
tree | fe3152f40c407d7077e8808b179cca91d53dc552 /pkgs/development/python-modules/dbt-snowflake | |
parent | c0310c08d755809400366624c9ac77ecfef4266a (diff) |
python310Packages.dbt-snowflake: init at 1.5.2
Diffstat (limited to 'pkgs/development/python-modules/dbt-snowflake')
-rw-r--r-- | pkgs/development/python-modules/dbt-snowflake/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dbt-snowflake/default.nix b/pkgs/development/python-modules/dbt-snowflake/default.nix new file mode 100644 index 0000000000000..b32f7fbd9a6b5 --- /dev/null +++ b/pkgs/development/python-modules/dbt-snowflake/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, dbt-core +, pytestCheckHook +, snowflake-connector-python +}: + +buildPythonPackage rec { + pname = "dbt-snowflake"; + version = "1.5.2"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "dbt-labs"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-Oz9BDvxSG4kOteuwKiPccxlsmQtOEwDLVyirDSWy1kY="; + }; + + propagatedBuildInputs = [ + dbt-core + snowflake-connector-python + ] ++ snowflake-connector-python.optional-dependencies.secure-local-storage; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "tests/unit" + ]; + + pythonImportsCheck = [ + "dbt.adapters.snowflake" + ]; + + meta = with lib; { + description = "Plugin enabling dbt to work with Snowflake"; + homepage = "https://github.com/dbt-labs/dbt-snowflake"; + changelog = "https://github.com/dbt-labs/dbt-snowflake/blob/${version}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ tjni ]; + }; +} |