depot/third_party/nixpkgs/pkgs/development/python-modules/dbt-bigquery/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

60 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, agate
, dbt-core
, google-cloud-bigquery
, google-cloud-storage
, google-cloud-dataproc
, pytestCheckHook
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "dbt-bigquery";
version = "1.7.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-CzRcnS/aECBq/9L8U+mLuHYo00HyBtKK6jmU8S03feM=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
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 ];
};
}