diff mbox series

[bug#51963,4/4] gnu: Add pgcli.

Message ID PU1PR01MB2155A4BD24BA6D00F43ED2AD8D9C9@PU1PR01MB2155.apcprd01.prod.exchangelabs.com
State New
Headers show
Series gnu: Add pgcli. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Foo Chuan Wei Nov. 19, 2021, 6 a.m. UTC
* gnu/packages/databases.scm (pgcli): New variable.
---
 gnu/packages/databases.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 5636d717b6..ee5ca569d9 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -639,6 +639,37 @@  replacement for the code@{python-memcached} library.")
 \"special\", or \"backslash commands\") on PostgreSQL.")
     (license license:bsd-3)))
 
+(define-public pgcli
+  (package
+    (name "pgcli")
+    (version "3.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pgcli" version))
+       (sha256
+        (base32 "1dy6yzak696107pqv83296h0xhc3ahlfaydm80593gwn37krgpkc"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cli-helpers" ,python-cli-helpers)
+       ("python-click" ,python-click)
+       ("python-configobj" ,python-configobj)
+       ("python-pendulum" ,python-pendulum)
+       ("python-pgspecial" ,python-pgspecial)
+       ("python-prompt-toolkit" ,python-prompt-toolkit)
+       ("python-psycopg2" ,python-psycopg2)
+       ("python-pygments" ,python-pygments)
+       ("python-setproctitle" ,python-setproctitle)
+       ("python-sqlparse" ,python-sqlparse)))
+    (native-inputs
+     `(("python-ipython-sql" ,python-ipython-sql)))
+    (home-page "https://www.pgcli.com")
+    (synopsis "PostgreSQL CLI with autocompletion and syntax highlighting")
+    (description
+     "@code{pgcli} is a command line interface for PostgreSQL with
+autocompletion and syntax highlighting.")
+    (license license:bsd-3)))
+
 (define-public mycli
   (package
     (name "mycli")