Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pgcli: Patch tests (#57402)


(cherry picked from commit f3c66bb31e50f010be3f8d5bb6214c47b1a225b8)

authored by

Sarah Brofeldt and committed by
Uli Baum
8d9dd03e 4fa4dbe9

+11 -1
+11 -1
pkgs/development/tools/database/pgcli/default.nix
··· 1 - { lib, python3Packages, fetchFromGitHub }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "pgcli"; ··· 12 inherit pname version; 13 sha256 = "1p4j2dbcfxd3kz86qi519jkqjx1mg5wdgn1gxdjx3lk1vpsd7x04"; 14 }; 15 16 propagatedBuildInputs = with python3Packages; [ 17 cli-helpers click configobj humanize prompt_toolkit psycopg2
··· 1 + { lib, python3Packages, fetchFromGitHub, fetchpatch }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "pgcli"; ··· 12 inherit pname version; 13 sha256 = "1p4j2dbcfxd3kz86qi519jkqjx1mg5wdgn1gxdjx3lk1vpsd7x04"; 14 }; 15 + 16 + patches = [ 17 + (fetchpatch { 18 + # TODO: Remove with next pgcli release. Fixes TypeError in tests 19 + # https://github.com/dbcli/pgcli/pull/1006 20 + url = https://github.com/dbcli/pgcli/commit/351135b61ef9ad3184c49a406544708daf589fe3.patch; 21 + sha256 = "08131y0lv1v760i0ypcx2hljx066ks93kp96xkv3bycxnavvcl53"; 22 + excludes = [ "changelog.rst" ]; 23 + }) 24 + ]; 25 26 propagatedBuildInputs = with python3Packages; [ 27 cli-helpers click configobj humanize prompt_toolkit psycopg2