pgcli: allow for sqlparse 4.x
This commit is contained in:
parent
c68fdc1fbe
commit
eb8d1214b6
@ -1,4 +1,4 @@
|
||||
{ buildPythonApplication, lib, fetchPypi, isPy3k
|
||||
{ buildPythonApplication, lib, fetchPypi, isPy3k, fetchpatch
|
||||
, cli-helpers, click, configobj, humanize, prompt_toolkit, psycopg2
|
||||
, pygments, sqlparse, pgspecial, setproctitle, keyring, pytest, mock
|
||||
}:
|
||||
@ -19,6 +19,15 @@ buildPythonApplication rec {
|
||||
pygments sqlparse pgspecial setproctitle keyring
|
||||
];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "enable-sqlparse-4.patch";
|
||||
url = "https://github.com/dbcli/pgcli/pull/1224/commits/55d534d41051887c637b6300e08a9f70e6656020.patch";
|
||||
sha256 = "01r8qc7qzb6mz0xq2xnrgyackbapf43ng6l88qpzd9lw2pwksc8w";
|
||||
includes = [ "pgcli/packages/parseutils/ctes.py" "tests/test_sqlcompletion.py" "setup.py" ];
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "prompt_toolkit>=2.0.6,<3.0.0" "prompt_toolkit"
|
||||
|
Loading…
Reference in New Issue
Block a user