1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 agate, 11 dbt-adapters, 12 dbt-common, 13 dbt-core, 14 google-cloud-bigquery, 15 google-cloud-dataproc, 16 google-cloud-storage, 17 18 # tests 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "dbt-bigquery"; 24 version = "1.9.1"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "dbt-labs"; 29 repo = "dbt-bigquery"; 30 tag = "v${version}"; 31 hash = "sha256-YZA8lcUGoq5jMNS1GlbBd036X2F3khsZWr5Pv65zpPI="; 32 }; 33 34 pythonRelaxDeps = [ 35 "agate" 36 "google-cloud-storage" 37 ]; 38 39 build-system = [ 40 setuptools 41 ]; 42 43 dependencies = [ 44 agate 45 dbt-adapters 46 dbt-common 47 dbt-core 48 google-cloud-bigquery 49 google-cloud-dataproc 50 google-cloud-storage 51 ]; 52 53 nativeCheckInputs = [ pytestCheckHook ]; 54 55 enabledTestPaths = [ "tests/unit" ]; 56 57 pythonImportsCheck = [ "dbt.adapters.bigquery" ]; 58 59 meta = { 60 description = "Plugin enabling dbt to operate on a BigQuery database"; 61 homepage = "https://github.com/dbt-labs/dbt-bigquery"; 62 changelog = "https://github.com/dbt-labs/dbt-bigquery/blob/${version}/CHANGELOG.md"; 63 license = lib.licenses.asl20; 64 maintainers = with lib.maintainers; [ tjni ]; 65 }; 66}