5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
45 lines
1,006 B
Nix
45 lines
1,006 B
Nix
{ 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 ];
|
|
};
|
|
}
|