Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 agate, 4 buildPythonPackage, 5 dbt-core, 6 fetchFromGitHub, 7 google-cloud-bigquery, 8 google-cloud-dataproc, 9 google-cloud-storage, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools, 13 urllib3, 14}: 15 16buildPythonPackage rec { 17 pname = "dbt-bigquery"; 18 version = "1.8.2"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "dbt-labs"; 25 repo = "dbt-bigquery"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-SYQAFvu7nw54X4jxicEA9+lnvMgj/Yp460xz3BFGYCM="; 28 }; 29 30 pythonRelaxDeps = [ "agate" ]; 31 32 build-system = [ 33 setuptools 34 ]; 35 36 dependencies = [ 37 agate 38 dbt-core 39 google-cloud-bigquery 40 google-cloud-storage 41 google-cloud-dataproc 42 ]; 43 44 nativeCheckInputs = [ pytestCheckHook ]; 45 46 pytestFlagsArray = [ "tests/unit" ]; 47 48 pythonImportsCheck = [ "dbt.adapters.bigquery" ]; 49 50 meta = with lib; { 51 description = "Plugin enabling dbt to operate on a BigQuery database"; 52 homepage = "https://github.com/dbt-labs/dbt-bigquery"; 53 changelog = "https://github.com/dbt-labs/dbt-bigquery/blob/${version}/CHANGELOG.md"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ tjni ]; 56 }; 57}