depot/third_party/nixpkgs/pkgs/development/python-modules/dbt-bigquery/default.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

{
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 ];
};
}