fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
59 lines
1.2 KiB
Nix
59 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.8";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbt-labs";
|
|
repo = "dbt-bigquery";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Uc842hkrCYDR92ACDtNW+Iqq5l54CSp40D1tOL7wt8o=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "agate" ];
|
|
|
|
build-system = [
|
|
pythonRelaxDepsHook
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
};
|
|
}
|