From 8255e899b1e83d8cfd723741ce223f3806169997 Mon Sep 17 00:00:00 2001 From: Foo Chuan Wei Date: Fri, 14 Jan 2022 10:09:55 +0100 Subject: gnu: Add python-pgspecial. * gnu/packages/databases.scm (python-pgspecial): New variable. Signed-off-by: Nicolas Goaziou --- gnu/packages/databases.scm | 56 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index ef63895513..e0b6f03f8a 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2021 Alexandre Hannud Abdo ;;; Copyright © 2021 Simon Tournier ;;; Copyright © 2021 jgart +;;; Copyright © 2021 Foo Chuan Wei ;;; ;;; This file is part of GNU Guix. ;;; @@ -654,16 +655,37 @@ replacement for the code@{python-memcached} library.") auto-completion and syntax highlighting.") (license license:bsd-3))) +(define-public python-pgspecial + (package + (name "python-pgspecial") + (version "1.13.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pgspecial" version)) + (sha256 + (base32 "00ddkf565rjcxmfml1z4mmkns1aq8x5s5g85xmnz2scln42y4irq")))) + (build-system python-build-system) + (propagated-inputs + (list python-click python-sqlparse python-psycopg2)) + (home-page "https://github.com/dbcli/pgspecial") + (synopsis + "Python implementation of PostgreSQL meta commands (backslash commands)") + (description + "This Python package provides an API to execute meta-commands (AKA +\"special\", or \"backslash commands\") on PostgreSQL.") + (license license:bsd-3))) + (define-public mycli (package (name "mycli") (version "1.24.1") (source - (origin - (method url-fetch) - (uri (pypi-uri "mycli" version)) - (sha256 - (base32 "0rij9nw20zhqr7cqnkm8daw8b1wdc9zb6ny1ji9qz5557nz9i3bl")))) + (origin + (method url-fetch) + (uri (pypi-uri "mycli" version)) + (sha256 + (base32 "0rij9nw20zhqr7cqnkm8daw8b1wdc9zb6ny1ji9qz5557nz9i3bl")))) (build-system python-build-system) (arguments '(#:tests? #f ; tests expect a running MySQL @@ -674,21 +696,21 @@ auto-completion and syntax highlighting.") (substitute* "setup.py" (("<0\\.4\\.0") "<0.5.0"))))))) (propagated-inputs - (list python-cli-helpers - python-click - python-configobj - python-cryptography - python-prompt-toolkit - python-pyaes - python-pygments - python-pymysql - python-pyperclip - python-sqlparse)) + (list python-cli-helpers + python-click + python-configobj + python-cryptography + python-prompt-toolkit + python-pyaes + python-pygments + python-pymysql + python-pyperclip + python-sqlparse)) (home-page "https://www.mycli.net") (synopsis - "Terminal Client for MySQL with AutoCompletion and Syntax Highlighting") + "Terminal Client for MySQL with AutoCompletion and Syntax Highlighting") (description - "MyCLI is a command line interface for MySQL, MariaDB, and Percona with + "MyCLI is a command line interface for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting.") (license license:bsd-3))) -- cgit v1.2.3