Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 dbt-core, 5 fetchFromGitHub, 6 pytestCheckHook, 7 setuptools, 8 snowflake-connector-python, 9}: 10 11buildPythonPackage rec { 12 pname = "dbt-snowflake"; 13 version = "1.9.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "dbt-labs"; 18 repo = "dbt-snowflake"; 19 tag = "v${version}"; 20 hash = "sha256-oPzSdAQgb2fKES3YcSGYjILFqixxxjdLCNVytVPecTg="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 dbt-core 27 snowflake-connector-python 28 ] 29 ++ snowflake-connector-python.optional-dependencies.secure-local-storage; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 enabledTestPaths = [ "tests/unit" ]; 34 35 pythonImportsCheck = [ "dbt.adapters.snowflake" ]; 36 37 meta = { 38 description = "Plugin enabling dbt to work with Snowflake"; 39 homepage = "https://github.com/dbt-labs/dbt-snowflake"; 40 changelog = "https://github.com/dbt-labs/dbt-snowflake/blob/${src.tag}/CHANGELOG.md"; 41 license = lib.licenses.asl20; 42 maintainers = with lib.maintainers; [ tjni ]; 43 }; 44}