depot/third_party/nixpkgs/pkgs/development/python-modules/dbt-bigquery/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

66 lines
1.2 KiB
Nix

{ lib
, agate
, buildPythonPackage
, dbt-core
, fetchFromGitHub
, google-cloud-bigquery
, google-cloud-dataproc
, google-cloud-storage
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, setuptools
, urllib3
}:
buildPythonPackage rec {
pname = "dbt-bigquery";
version = "1.7.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-bigquery";
rev = "refs/tags/v${version}";
hash = "sha256-bF2++Bs4pvqA3GW2xJkRNa1HkqnHBbMnKHHjo1TWboM=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
pythonRelaxDeps = [
"agate"
];
propagatedBuildInputs = [
agate
dbt-core
google-cloud-bigquery
google-cloud-storage
google-cloud-dataproc
];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests/unit"
];
pythonImportsCheck = [
"dbt.adapters.bigquery"
];
meta = with lib; {
description = "Plugin enabling dbt to operate on a BigQuery database";
homepage = "https://github.com/dbt-labs/dbt-bigquery";
changelog = "https://github.com/dbt-labs/dbt-bigquery/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ tjni ];
};
}