anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / dbt-snowflake / default.nix
blob7924c1c4ec872343ec081e881133de76fe98097c
2   lib,
3   buildPythonPackage,
4   dbt-core,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9   snowflake-connector-python,
12 buildPythonPackage rec {
13   pname = "dbt-snowflake";
14   version = "1.8.4";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "dbt-labs";
21     repo = "dbt-snowflake";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-XUHXyxAoIBHXmH2xXOGrCO2+WMwwJ7oVYt4+m/fT/Ko=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [
29     dbt-core
30     snowflake-connector-python
31   ] ++ snowflake-connector-python.optional-dependencies.secure-local-storage;
33   nativeCheckInputs = [ pytestCheckHook ];
35   pytestFlagsArray = [ "tests/unit" ];
37   pythonImportsCheck = [ "dbt.adapters.snowflake" ];
39   meta = with lib; {
40     description = "Plugin enabling dbt to work with Snowflake";
41     homepage = "https://github.com/dbt-labs/dbt-snowflake";
42     changelog = "https://github.com/dbt-labs/dbt-snowflake/blob/${version}/CHANGELOG.md";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ tjni ];
45   };