From d3686fea5b3cf450a1dd24a16dfe5148684aa9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Augusto=20Silva=20Gon=C3=A7alves?= Date: Sun, 7 Oct 2018 23:19:31 -0300 Subject: [PATCH] New package: pgcli-2.1.0 --- .../pgcli/patches/relax-dependencies.patch | 16 ++++++++++++ srcpkgs/pgcli/template | 26 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 srcpkgs/pgcli/patches/relax-dependencies.patch create mode 100644 srcpkgs/pgcli/template diff --git a/srcpkgs/pgcli/patches/relax-dependencies.patch b/srcpkgs/pgcli/patches/relax-dependencies.patch new file mode 100644 index 0000000000..d89474344b --- /dev/null +++ b/srcpkgs/pgcli/patches/relax-dependencies.patch @@ -0,0 +1,16 @@ +Seemingly the only breaking change in these updates is dropping support +for old Python releases, so we should be fine. + +--- setup.py ++++ setup.py +@@ -16,8 +16,8 @@ install_requirements = [ + 'click >= 4.1', + 'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF? + 'prompt_toolkit>=2.0.6,<2.1.0', +- 'psycopg2 >= 2.7.4,<2.8', +- 'sqlparse >=0.2.2,<0.3.0', ++ 'psycopg2 >= 2.7.4,<2.9', ++ 'sqlparse >=0.2.2,<0.4.0', + 'configobj >= 5.0.6', + 'humanize >= 0.5.1', + 'cli_helpers[styles] >= 1.2.0', diff --git a/srcpkgs/pgcli/template b/srcpkgs/pgcli/template new file mode 100644 index 0000000000..7a24c6c6ca --- /dev/null +++ b/srcpkgs/pgcli/template @@ -0,0 +1,26 @@ +# Template file for 'pgcli' +pkgname=pgcli +version=2.1.0 +revision=1 +archs=noarch +build_style=python3-module +pycompile_module="pgcli" +hostmakedepends="python3-setuptools" +depends="python3-pgspecial python3-click python3-Pygments python3-prompt_toolkit2 + python3-psycopg2 python3-sqlparse python3-configobj python3-humanize + python3-cli_helpers python3-setproctitle" +short_desc="PostgreSQL CLI with autocompletion and syntax highlighting" +maintainer="Aluísio Augusto Silva Gonçalves " +license="BSD-3-Clause" +homepage="https://www.pgcli.com" +distfiles="${PYPI_SITE}/p/pgcli/pgcli-${version}.tar.gz" +checksum=3791a3c7734802fd14fefe9d18082a95687a02631f3287bd154cd27b4f12c05c + +do_check() { + # pgcli tests require a PostgreSQL server; skip them. + : +} + +post_install() { + vlicense LICENSE.txt +}