diff options
author | Sarah Brofeldt <sbrofeldt@gmail.com> | 2019-03-12 01:30:13 +0100 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2019-03-12 01:30:13 +0100 |
commit | f3c66bb31e50f010be3f8d5bb6214c47b1a225b8 (patch) | |
tree | 0cdf59b3bc2dc5bc7e487ec89f548725993ec593 | |
parent | 92917bfb994a54627f0da844bbc75bc9dc200d99 (diff) |
pgcli: Patch tests (#57402)
-rw-r--r-- | pkgs/development/tools/database/pgcli/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/tools/database/pgcli/default.nix b/pkgs/development/tools/database/pgcli/default.nix index f2346480776c..602eb33fdc1c 100644 --- a/pkgs/development/tools/database/pgcli/default.nix +++ b/pkgs/development/tools/database/pgcli/default.nix @@ -1,4 +1,4 @@ -{ lib, python3Packages, fetchFromGitHub }: +{ lib, python3Packages, fetchFromGitHub, fetchpatch }: python3Packages.buildPythonApplication rec { pname = "pgcli"; @@ -13,6 +13,16 @@ python3Packages.buildPythonApplication rec { sha256 = "1p4j2dbcfxd3kz86qi519jkqjx1mg5wdgn1gxdjx3lk1vpsd7x04"; }; + patches = [ + (fetchpatch { + # TODO: Remove with next pgcli release. Fixes TypeError in tests + # https://github.com/dbcli/pgcli/pull/1006 + url = https://github.com/dbcli/pgcli/commit/351135b61ef9ad3184c49a406544708daf589fe3.patch; + sha256 = "08131y0lv1v760i0ypcx2hljx066ks93kp96xkv3bycxnavvcl53"; + excludes = [ "changelog.rst" ]; + }) + ]; + propagatedBuildInputs = with python3Packages; [ cli-helpers click configobj humanize prompt_toolkit psycopg2 pygments sqlparse pgspecial setproctitle keyring |