1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 google-cloud-bigquery,
7 google-cloud-bigquery-storage,
8}:
9
10buildPythonPackage rec {
11 pname = "harlequin-bigquery";
12 version = "1.0.3";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "harlequin_bigquery";
17 inherit version;
18 hash = "sha256-jdDwmfiU7x4zl4hg12evrPqLEzPB2M8/1HN4d0N1EJQ=";
19 };
20
21 build-system = [
22 poetry-core
23 ];
24
25 dependencies = [
26 google-cloud-bigquery
27 google-cloud-bigquery-storage
28 ];
29
30 # To prevent circular dependency
31 # as harlequin-bigquery requires harlequin which requires harlequin-bigquery
32 doCheck = false;
33 pythonRemoveDeps = [
34 "harlequin"
35 ];
36
37 meta = {
38 description = "Harlequin adapter for Google BigQuery";
39 homepage = "https://pypi.org/project/harlequin-bigquery/";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ pcboy ];
42 };
43}