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