summary refs log tree commit diff
path: root/pkgs/development/tools/database/pgcli
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2018-11-06 22:37:44 -0500
committerMario Rodas <marsam@users.noreply.github.com>2018-11-10 10:06:56 -0500
commit8c8d3c74c5ca303efc91f5eba0ba931e9c617697 (patch)
tree86428c2d701bf46b407c5c74595001166c9fcff7 /pkgs/development/tools/database/pgcli
parent0270dda6b4fdc15d9cdc83cf74b91adb3e7c6e5f (diff)
downloadnixpkgs-8c8d3c74c5ca303efc91f5eba0ba931e9c617697.tar
nixpkgs-8c8d3c74c5ca303efc91f5eba0ba931e9c617697.tar.gz
nixpkgs-8c8d3c74c5ca303efc91f5eba0ba931e9c617697.tar.bz2
nixpkgs-8c8d3c74c5ca303efc91f5eba0ba931e9c617697.tar.lz
nixpkgs-8c8d3c74c5ca303efc91f5eba0ba931e9c617697.tar.xz
nixpkgs-8c8d3c74c5ca303efc91f5eba0ba931e9c617697.tar.zst
nixpkgs-8c8d3c74c5ca303efc91f5eba0ba931e9c617697.zip
pgcli: 1.11.0 -> 2.0.0
Diffstat (limited to 'pkgs/development/tools/database/pgcli')
-rw-r--r--pkgs/development/tools/database/pgcli/default.nix26
1 files changed, 12 insertions, 14 deletions
diff --git a/pkgs/development/tools/database/pgcli/default.nix b/pkgs/development/tools/database/pgcli/default.nix
index bc1c2515bfa..73e34383338 100644
--- a/pkgs/development/tools/database/pgcli/default.nix
+++ b/pkgs/development/tools/database/pgcli/default.nix
@@ -1,27 +1,25 @@
 { lib, pythonPackages, fetchFromGitHub }:
 
 pythonPackages.buildPythonApplication rec {
-  name = "pgcli-${version}";
-  version = "1.11.0";
+  pname = "pgcli";
+  version = "2.0.0";
 
-  src = fetchFromGitHub {
-    owner = "dbcli";
-    repo = "pgcli";
-    rev = "v${version}";
-    sha256 = "01qcvl0iwabinq3sb4340js8v3sbwkbxi64sg4xy76wj8xr6kgsk";
+  src = pythonPackages.fetchPypi {
+    inherit pname version;
+    sha256 = "085fna5nc72nfj1gw0m4ia6wzayinqaffmjy3ajldha1727vqwzi";
   };
 
-  buildInputs = with pythonPackages; [ pytest mock ];
-  checkPhase = ''
-    mkdir /tmp/homeless-shelter
-    HOME=/tmp/homeless-shelter py.test tests -k 'not test_missing_rc_dir and not test_quoted_db_uri and not test_port_db_uri'
-  '';
-
   propagatedBuildInputs = with pythonPackages; [
-    cli-helpers click configobj humanize prompt_toolkit psycopg2
+    cli-helpers click configobj humanize prompt_toolkit_2 psycopg2
     pygments sqlparse pgspecial setproctitle keyring
   ];
 
+  checkInputs = with pythonPackages; [ pytest mock ];
+
+  checkPhase = ''
+    py.test
+  '';
+
   meta = with lib; {
     description = "Command-line interface for PostgreSQL";
     longDescription = ''