depot/third_party/nixpkgs/pkgs/development/python-modules/dbt-snowflake/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
1,006 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, dbt-core
, pytestCheckHook
, snowflake-connector-python
}:
buildPythonPackage rec {
pname = "dbt-snowflake";
version = "1.7.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-v+9uxHeROZU7vZvvB7UYUFNM6ez97qiZmgDiunUKf04=";
};
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 ];
};
}