pgcli: use psycopg3

pgcli 3.5.0 supports psycopg 3
This commit is contained in:
Mario Rodas 2022-09-17 04:20:00 +00:00
parent 854a94aa19
commit c85040af5c

View File

@ -1,11 +1,12 @@
{ lib, stdenv
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, cli-helpers
, click
, configobj
, prompt-toolkit
, psycopg2
, psycopg
, pygments
, sqlparse
, pgspecial
@ -28,17 +29,12 @@ buildPythonPackage rec {
sha256 = "sha256-zESNlRWfwJA9NhgpkneKCW7aV1LWYNR2cTg8jiv2M/E=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pgspecial>=1.13.1,<2.0.0" "pgspecial>=1.13.1"
'';
propagatedBuildInputs = [
cli-helpers
click
configobj
prompt-toolkit
psycopg2
psycopg
pygments
sqlparse
pgspecial