Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: [PR PATCH] [Updated] New package: pgadmin4-qt-4.22
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
@ 2020-07-07  6:32 ` mustaqimM
  2020-07-07  6:35 ` [PR REVIEW] " mustaqimM
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mustaqimM @ 2020-07-07  6:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

There is an updated pull request by mustaqimM against master on the void-packages repository

https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201

New package: pgadmin4-qt-4.22
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?

A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 16982 bytes --]

From 17cd88f4e37451586010f39e912d1478eadf8c2a Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:04:05 +0200
Subject: [PATCH 01/11] New package: python3-Flask-BabelEx-0.9.4

---
 srcpkgs/python3-Flask-BabelEx/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-BabelEx/template

diff --git a/srcpkgs/python3-Flask-BabelEx/template b/srcpkgs/python3-Flask-BabelEx/template
new file mode 100644
index 00000000000..1d8cd9fa548
--- /dev/null
+++ b/srcpkgs/python3-Flask-BabelEx/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-BabelEx'
+pkgname=python3-Flask-BabelEx
+version=0.9.4
+revision=1
+wrksrc="flask-babelex-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Flask python3-Babel python3-speaklater python3-Jinja2"
+short_desc="i18n and l10n support for Flask based on Babel and pytz"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="BSD-3-Clause"
+homepage="https://github.com/mrjoes/flask-babelex"
+distfiles="https://github.com/mrjoes/flask-babelex/archive/${version}.tar.gz"
+checksum=436869a09884b456dc989566582209e9aef7f06b1d342e0b57936d6b834fa073
+
+post_install() {
+	vlicense LICENSE
+}

From 4222b34bb8a2a23e3cabc82d1fb63aad5d172b66 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:04:44 +0200
Subject: [PATCH 02/11] New package: python3-Flask-Compress-1.5.0

---
 srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Compress/template

diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..e4328eb623d
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+	vlicense LICENSE.txt
+}

From a7f88cb707c186386ab989c7a10a4a69abaaf60b Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:05:24 +0200
Subject: [PATCH 03/11] New package: python3-Flask-Gravatar-0.5.0

---
 srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Gravatar/template

diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..dad2498577b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+	vlicense LICENSE
+}

From 48d8a8ab9650eb33c1c8ec72139f44ae570f3fb4 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:05:47 +0200
Subject: [PATCH 04/11] New package: python3-Flask-Migrate-2.5.3

---
 srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Migrate/template

diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..7b38d6136c2
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://pypi.org/project/Flask-Migrate/"
+distfiles="https://github.com/miguelgrinberg/Flask-Migrate/archive/v${version}.tar.gz"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+checksum=4af1feb1b5e5a0332c11c3ebe7981228719776b73c0bfa28b4aead541dff46d8
+
+post_install() {
+	vlicense LICENSE
+}

From e34ad9a13a66e044aecdab42f8e290a40849fbdd Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:06:25 +0200
Subject: [PATCH 05/11] New package: python3-Flask-Paranoid-0.2

---
 srcpkgs/python3-Flask-Paranoid/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Paranoid/template

diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..6fc65175d47
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://flask-paranoid.readthedocs.io/en/latest/"
+distfiles="https://github.com/miguelgrinberg/flask-paranoid/archive/v${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3

From a994d949338378bbe39d5bd193e951bf6c0d6701 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:06:56 +0200
Subject: [PATCH 06/11] New package: python3-Flask-Principal-0.4.0

---
 srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Principal/template

diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..026fbcfe90d
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://python3hosted.org/Flask-Principal/"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+changelog="https://python3hosted.org/Flask-Principal/changelog.html"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+	vlicense LICENSE
+}

From e10b6f17aa7c91c1c1e4c9cdb4ed5082cb051eb2 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:07:24 +0200
Subject: [PATCH 07/11] New package: python3-Flask-Security-Too-3.4.3

---
 srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Security-Too/template

diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..1868c08826f
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.3
+revision=1
+wrksrc="flask-security-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="https://github.com/Flask-Middleware/flask-security/archive/${version}.tar.gz"
+checksum=3b618b61cf8fe71bb82bcc228b54d9ca8fa7224776b457710dd62b8d9f598606
+
+post_install() {
+	vlicense LICENSE
+}

From a4e61090fc5e0b3913001e9e3fd7334fccc794e0 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:07:51 +0200
Subject: [PATCH 08/11] New package: python3-brotli-1.0.7

---
 srcpkgs/python3-brotli/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-brotli/template

diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..4e1087acc59
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.7
+revision=1
+wrksrc="Brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles=$PYPI_SITE/B/Brotli/Brotli-${version}.tar.gz
+checksum=0538dc1744fd17c314d2adc409ea7d1b779783b89fd95bcfb0c2acc93a6ea5a7

From a67c898bafa2bd243df51d5dd2c75825fe17b511 Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:08:12 +0200
Subject: [PATCH 09/11] New package: python3-speaklater-0.13

---
 srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-speaklater/template

diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..f7ff0c304b1
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=0.13
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="custom:BSD"
+homepage="https://pypi.org/project/speaklater/"
+distfiles="https://github.com/mitsuhiko/speaklater/archive/${version}.tar.gz"
+checksum=11f42873c46f620d68fcbc051782ec1d63c6758d3de8be9a75d0cf7ff4bad83b
+
+post_install() {
+	vlicense LICENSE
+}

From f4648e3d3c63e42187fb8318258b50f4b251f93d Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:08:34 +0200
Subject: [PATCH 10/11] New package: python3-sshtunnel-0.1.5

---
 srcpkgs/python3-sshtunnel/template | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/python3-sshtunnel/template

diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..d72bdffa95a
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,14 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python2 SSH tunnels"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="https://github.com/pahaz/sshtunnel/archive/${version}.tar.gz"
+checksum=7590d5f79af5c8c33ab49cc99cfc867b401ed55c5e24dfaeed870bd920978c38

From 8ec86eba4b6be0bb7d735083b23643922f3556cd Mon Sep 17 00:00:00 2001
From: mustaqim <mustaqim@pm.me>
Date: Tue, 7 Jul 2020 07:09:31 +0200
Subject: [PATCH 11/11] New package: pgadmin4-4.22

---
 srcpkgs/pgadmin4/files/pgadmin4.desktop       | 11 +++++
 .../patches/hardcode-py-lib-location.patch    | 30 +++++++++++++
 srcpkgs/pgadmin4/template                     | 43 +++++++++++++++++++
 srcpkgs/python3-brotli/template               |  1 +
 4 files changed, 85 insertions(+)
 create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
 create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
 create mode 100644 srcpkgs/pgadmin4/template

diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+     add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+     // Build (and canonicalise) the virtual environment path
+-    QFileInfo venvBinPath(app_dir + "/../venv/bin");
+-    QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+-    QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+-    QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+-    QFileInfo venvPath(app_dir + "/../venv");
++    QFileInfo venvBinPath("/usr/bin");
++    QFileInfo venvLibPath("/usr/lib/python3.8");
++    QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++    QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++    QFileInfo venvPath("/usr/lib/python3.8");
+ 
+     // Prepend the bin directory to the path
+     add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+ 
+     // Find the webapp
+     QStringList paths;
+-    paths.append("../web/"); // Linux source tree
++    paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+     paths.append("../../web/"); // Windows source tree
+     paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..1786e56aa23
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,43 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.22
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-BabelEx python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <mustaqim@pm.me>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=77d863d2da5b50a357133f0e34ada9ac12b99f94ecb40ca2ab07c564aea084f7
+patch_args="-Np1"
+
+do_configure() {
+	vsed -i runtime/ConfigWindow.ui \
+		-e 's|/usr/pgadmin4/lib/python2.7|/usr/lib/python3.8|g' \
+		-e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+	export PGADMIN_PYTHON_DIR=/usr
+	cd runtime
+	qmake CONFIG+=release
+	make
+}
+
+do_install() {
+	vbin runtime/pgAdmin4
+	vmkdir /usr/lib/pgadmin4
+	vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+	vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+	vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+	vlicense LICENSE
+}
diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
index 4e1087acc59..3052f56fda6 100644
--- a/srcpkgs/python3-brotli/template
+++ b/srcpkgs/python3-brotli/template
@@ -10,4 +10,5 @@ maintainer="mustaqim <mustaqim@pm.me>"
 license="Apache-2.0"
 homepage="https://pypi.org/project/Brotli/"
 distfiles=$PYPI_SITE/B/Brotli/Brotli-${version}.tar.gz
+distfiles="https://files.pythonhosted.org/packages/cd/9c/7955895f5672ecc85270244582c6b53ff95bb4c24bf77bd9271d42351635/Brotli-1.0.7.zip"
 checksum=0538dc1744fd17c314d2adc409ea7d1b779783b89fd95bcfb0c2acc93a6ea5a7

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR REVIEW] New package: pgadmin4-qt-4.22
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
  2020-07-07  6:32 ` [PR PATCH] [Updated] New package: pgadmin4-qt-4.22 mustaqimM
@ 2020-07-07  6:35 ` mustaqimM
  2020-07-09 16:16 ` [PR REVIEW] New package: pgadmin4-4.22 sgn
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mustaqimM @ 2020-07-07  6:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

New review comment by mustaqimM on void-packages repository

https://github.com/void-linux/void-packages/pull/23201#discussion_r450640384

Comment:
The brotli package isn't under the pypi site, I changed it now but I forgot to rebuild, it won't work with the new url

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR REVIEW] New package: pgadmin4-4.22
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
  2020-07-07  6:32 ` [PR PATCH] [Updated] New package: pgadmin4-qt-4.22 mustaqimM
  2020-07-07  6:35 ` [PR REVIEW] " mustaqimM
@ 2020-07-09 16:16 ` sgn
  2020-07-09 16:19 ` sgn
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2020-07-09 16:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/23201#discussion_r452334884

Comment:
OK, it should be:
```sh
distfiles=$PYPI_SITE/B/Brotli/Brotli-${version}.zip
```

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR REVIEW] New package: pgadmin4-4.22
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
                   ` (2 preceding siblings ...)
  2020-07-09 16:16 ` [PR REVIEW] New package: pgadmin4-4.22 sgn
@ 2020-07-09 16:19 ` sgn
  2020-10-05  6:35 ` [PR PATCH] [Updated] " mustaqimM
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2020-07-09 16:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/23201#discussion_r452336637

Comment:
I prefer
```
distfiles="$PYPI_SITE/F/Flask-Security/Flask-Security-${version}.tar.gz"
checksum=d61daa5f5a48f89f30f50555872bdf581b2c65804668b0313345cd7beff26432
```

Same for other packages.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] New package: pgadmin4-4.22
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
                   ` (3 preceding siblings ...)
  2020-07-09 16:19 ` sgn
@ 2020-10-05  6:35 ` mustaqimM
  2020-10-05  6:48 ` mustaqimM
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mustaqimM @ 2020-10-05  6:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

There is an updated pull request by mustaqimM against master on the void-packages repository

https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201

New package: pgadmin4-4.22
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?

A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 15049 bytes --]

From 18f61645bc226d90765460fa1720e39525edccb2 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 05:56:13 +0200
Subject: [PATCH 01/10] New package: pgadmin4-4.26

---
 srcpkgs/pgadmin4/files/pgadmin4.desktop       | 11 +++++
 .../patches/hardcode-py-lib-location.patch    | 30 +++++++++++++
 srcpkgs/pgadmin4/template                     | 42 +++++++++++++++++++
 3 files changed, 83 insertions(+)
 create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
 create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
 create mode 100644 srcpkgs/pgadmin4/template

diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+     add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+     // Build (and canonicalise) the virtual environment path
+-    QFileInfo venvBinPath(app_dir + "/../venv/bin");
+-    QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+-    QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+-    QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+-    QFileInfo venvPath(app_dir + "/../venv");
++    QFileInfo venvBinPath("/usr/bin");
++    QFileInfo venvLibPath("/usr/lib/python3.8");
++    QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++    QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++    QFileInfo venvPath("/usr/lib/python3.8");
+ 
+     // Prepend the bin directory to the path
+     add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+ 
+     // Find the webapp
+     QStringList paths;
+-    paths.append("../web/"); // Linux source tree
++    paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+     paths.append("../../web/"); // Windows source tree
+     paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..33a3bb8b22a
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,42 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.26
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=46b69668941c80da763b869b7dc6723ad502443d68e8012b7fccd3c99569475d
+patch_args="-Np1"
+
+do_configure() {
+	vsed -i runtime/ConfigWindow.ui \
+		-e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+	export PGADMIN_PYTHON_DIR=/usr
+	cd runtime
+	qmake CONFIG+=release
+	make
+}
+
+do_install() {
+	vbin runtime/pgAdmin4
+	vmkdir /usr/lib/pgadmin4
+	vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+	vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+	vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+	vlicense LICENSE
+}

From aa7202e77378165035dfdd34bbcd4e0dc5313e6b Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:23:15 +0200
Subject: [PATCH 02/10] New package: python3-Flask-Compress-1.5.0

---
 srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Compress/template

diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..3a11502405b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 25ed25acf66f25f668d0fbcb3f215d83801e18ca Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:24:03 +0200
Subject: [PATCH 03/10] New package: python3-Flask-Gravatar-0.5.0

---
 srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Gravatar/template

diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..645ba1cc31a
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+	vlicense LICENSE
+}

From dd57f2deebce0c3db708d9fee17a6498500eeb3e Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:26:20 +0200
Subject: [PATCH 04/10] New package: python3-Flask-Migrate-2.5.3

---
 srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Migrate/template

diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..0316b1d8624
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-migrate/"
+distfiles="$PYPI_SITE/F/Flask-Migrate/Flask-Migrate-${version}.tar.gz"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+checksum=4af1feb1b5e5a0332c11c3ebe7981228719776b73c0bfa28b4aead541dff46d8
+
+post_install() {
+	vlicense LICENSE
+}

From a072c3b9caf751e8dc2b447b3c13409b7650d7ac Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:30:31 +0200
Subject: [PATCH 05/10] New package: python3-Flask-Paranoid-0.2.0

---
 srcpkgs/python3-Flask-Paranoid/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Paranoid/template

diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..f7d02a959b5
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2.0
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-paranoid"
+distfiles="$PYPI_SITE/F/Flask-Paranoid/Flask-Paranoid-${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3
+
+post_install() {
+	vlicense LICENSE
+}

From 9089335f853cd40e1b16715b16c832cca61622dd Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:14 +0200
Subject: [PATCH 06/10] New package: python3-Flask-Principal-0.4.0

---
 srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Principal/template

diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..aab51163318
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pythonhosted.org/Flask-Principal/"
+changelog="https://pythonhosted.org/Flask-Principal/changelog.html"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+	vlicense LICENSE
+}

From 5663d9c881b4b18383444998301299bc24d4c8f4 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:51 +0200
Subject: [PATCH 07/10] New package: python3-Flask-Security-Too-3.4.4

---
 srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Security-Too/template

diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..eb1a5dee0ed
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.4
+revision=1
+wrksrc="Flask-Security-Too-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="$PYPI_SITE/F/Flask-Security-Too/Flask-Security-Too-${version}.tar.gz"
+checksum=3c52b0e0c8453a012122aad102041fd71bd1ea025f5154bbfb1d20b4c6a4477e
+
+post_install() {
+	vlicense LICENSE
+}

From 16d70d245cd271b7b08e40fe7076f316e26b19fd Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:41:45 +0200
Subject: [PATCH 08/10] New package: python3-brotli-1.0.9

---
 srcpkgs/python3-brotli/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-brotli/template

diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..74c96a8f0f5
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.9
+revision=1
+wrksrc="brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles="https://github.com/google/brotli/archive/v${version}.tar.gz"
+checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46

From edc899cec8791f30b2d8fd07b064b069281b7fec Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:45:09 +0200
Subject: [PATCH 09/10] New package: python3-speaklater-1.3

---
 srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-speaklater/template

diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..5963354fac6
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=1.3
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="custom:BSD"
+homepage="https://github.com/mitsuhiko/speaklater/"
+distfiles="$PYPI_SITE/s/speaklater/speaklater-${version}.tar.gz"
+checksum=59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9
+
+post_install() {
+	vlicense LICENSE
+}

From 1075a8b6950622f1ad41fef125972ea0b98ea849 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:48:13 +0200
Subject: [PATCH 10/10] New package: python3-sshtunnel-0.1.5

---
 srcpkgs/python3-sshtunnel/template | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/python3-sshtunnel/template

diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..d6481808267
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,14 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python SSH tunnels"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="$PYPI_SITE/s/sshtunnel/sshtunnel-${version}.tar.gz"
+checksum=c813fdcda8e81c3936ffeac47cb69cfb2d1f5e77ad0de656c6dab56aeebd9249

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] New package: pgadmin4-4.22
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
                   ` (4 preceding siblings ...)
  2020-10-05  6:35 ` [PR PATCH] [Updated] " mustaqimM
@ 2020-10-05  6:48 ` mustaqimM
  2020-10-05  6:54 ` [PR PATCH] [Updated] New package: pgadmin4-4.26 mustaqimM
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mustaqimM @ 2020-10-05  6:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

There is an updated pull request by mustaqimM against master on the void-packages repository

https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201

New package: pgadmin4-4.22
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?

A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 15095 bytes --]

From 18f61645bc226d90765460fa1720e39525edccb2 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 05:56:13 +0200
Subject: [PATCH 01/10] New package: pgadmin4-4.26

---
 srcpkgs/pgadmin4/files/pgadmin4.desktop       | 11 +++++
 .../patches/hardcode-py-lib-location.patch    | 30 +++++++++++++
 srcpkgs/pgadmin4/template                     | 42 +++++++++++++++++++
 3 files changed, 83 insertions(+)
 create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
 create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
 create mode 100644 srcpkgs/pgadmin4/template

diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+     add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+     // Build (and canonicalise) the virtual environment path
+-    QFileInfo venvBinPath(app_dir + "/../venv/bin");
+-    QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+-    QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+-    QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+-    QFileInfo venvPath(app_dir + "/../venv");
++    QFileInfo venvBinPath("/usr/bin");
++    QFileInfo venvLibPath("/usr/lib/python3.8");
++    QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++    QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++    QFileInfo venvPath("/usr/lib/python3.8");
+ 
+     // Prepend the bin directory to the path
+     add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+ 
+     // Find the webapp
+     QStringList paths;
+-    paths.append("../web/"); // Linux source tree
++    paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+     paths.append("../../web/"); // Windows source tree
+     paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..33a3bb8b22a
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,42 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.26
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=46b69668941c80da763b869b7dc6723ad502443d68e8012b7fccd3c99569475d
+patch_args="-Np1"
+
+do_configure() {
+	vsed -i runtime/ConfigWindow.ui \
+		-e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+	export PGADMIN_PYTHON_DIR=/usr
+	cd runtime
+	qmake CONFIG+=release
+	make
+}
+
+do_install() {
+	vbin runtime/pgAdmin4
+	vmkdir /usr/lib/pgadmin4
+	vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+	vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+	vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+	vlicense LICENSE
+}

From aa7202e77378165035dfdd34bbcd4e0dc5313e6b Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:23:15 +0200
Subject: [PATCH 02/10] New package: python3-Flask-Compress-1.5.0

---
 srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Compress/template

diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..3a11502405b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 25ed25acf66f25f668d0fbcb3f215d83801e18ca Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:24:03 +0200
Subject: [PATCH 03/10] New package: python3-Flask-Gravatar-0.5.0

---
 srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Gravatar/template

diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..645ba1cc31a
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+	vlicense LICENSE
+}

From dd57f2deebce0c3db708d9fee17a6498500eeb3e Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:26:20 +0200
Subject: [PATCH 04/10] New package: python3-Flask-Migrate-2.5.3

---
 srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Migrate/template

diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..0316b1d8624
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-migrate/"
+distfiles="$PYPI_SITE/F/Flask-Migrate/Flask-Migrate-${version}.tar.gz"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+checksum=4af1feb1b5e5a0332c11c3ebe7981228719776b73c0bfa28b4aead541dff46d8
+
+post_install() {
+	vlicense LICENSE
+}

From a072c3b9caf751e8dc2b447b3c13409b7650d7ac Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:30:31 +0200
Subject: [PATCH 05/10] New package: python3-Flask-Paranoid-0.2.0

---
 srcpkgs/python3-Flask-Paranoid/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Paranoid/template

diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..f7d02a959b5
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2.0
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-paranoid"
+distfiles="$PYPI_SITE/F/Flask-Paranoid/Flask-Paranoid-${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3
+
+post_install() {
+	vlicense LICENSE
+}

From 9089335f853cd40e1b16715b16c832cca61622dd Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:14 +0200
Subject: [PATCH 06/10] New package: python3-Flask-Principal-0.4.0

---
 srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Principal/template

diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..aab51163318
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pythonhosted.org/Flask-Principal/"
+changelog="https://pythonhosted.org/Flask-Principal/changelog.html"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+	vlicense LICENSE
+}

From 5663d9c881b4b18383444998301299bc24d4c8f4 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:51 +0200
Subject: [PATCH 07/10] New package: python3-Flask-Security-Too-3.4.4

---
 srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Security-Too/template

diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..eb1a5dee0ed
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.4
+revision=1
+wrksrc="Flask-Security-Too-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="$PYPI_SITE/F/Flask-Security-Too/Flask-Security-Too-${version}.tar.gz"
+checksum=3c52b0e0c8453a012122aad102041fd71bd1ea025f5154bbfb1d20b4c6a4477e
+
+post_install() {
+	vlicense LICENSE
+}

From 16d70d245cd271b7b08e40fe7076f316e26b19fd Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:41:45 +0200
Subject: [PATCH 08/10] New package: python3-brotli-1.0.9

---
 srcpkgs/python3-brotli/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-brotli/template

diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..74c96a8f0f5
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.9
+revision=1
+wrksrc="brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles="https://github.com/google/brotli/archive/v${version}.tar.gz"
+checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46

From edc899cec8791f30b2d8fd07b064b069281b7fec Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:45:09 +0200
Subject: [PATCH 09/10] New package: python3-speaklater-1.3

---
 srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-speaklater/template

diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..5963354fac6
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=1.3
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="custom:BSD"
+homepage="https://github.com/mitsuhiko/speaklater/"
+distfiles="$PYPI_SITE/s/speaklater/speaklater-${version}.tar.gz"
+checksum=59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9
+
+post_install() {
+	vlicense LICENSE
+}

From 8fe44fa780d60fd2988e01593d0ef94ac4ba9fd9 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:48:13 +0200
Subject: [PATCH 10/10] New package: python3-sshtunnel-0.1.5

---
 srcpkgs/python3-sshtunnel/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-sshtunnel/template

diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..e4f7f763f6f
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python SSH tunnels"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="$PYPI_SITE/s/sshtunnel/sshtunnel-${version}.tar.gz"
+checksum=c813fdcda8e81c3936ffeac47cb69cfb2d1f5e77ad0de656c6dab56aeebd9249
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] New package: pgadmin4-4.26
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
                   ` (5 preceding siblings ...)
  2020-10-05  6:48 ` mustaqimM
@ 2020-10-05  6:54 ` mustaqimM
  2020-10-05  7:08 ` mustaqimM
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: mustaqimM @ 2020-10-05  6:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

There is an updated pull request by mustaqimM against master on the void-packages repository

https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201

New package: pgadmin4-4.26
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?

A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 15095 bytes --]

From 18f61645bc226d90765460fa1720e39525edccb2 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 05:56:13 +0200
Subject: [PATCH 01/10] New package: pgadmin4-4.26

---
 srcpkgs/pgadmin4/files/pgadmin4.desktop       | 11 +++++
 .../patches/hardcode-py-lib-location.patch    | 30 +++++++++++++
 srcpkgs/pgadmin4/template                     | 42 +++++++++++++++++++
 3 files changed, 83 insertions(+)
 create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
 create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
 create mode 100644 srcpkgs/pgadmin4/template

diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+     add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+     // Build (and canonicalise) the virtual environment path
+-    QFileInfo venvBinPath(app_dir + "/../venv/bin");
+-    QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+-    QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+-    QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+-    QFileInfo venvPath(app_dir + "/../venv");
++    QFileInfo venvBinPath("/usr/bin");
++    QFileInfo venvLibPath("/usr/lib/python3.8");
++    QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++    QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++    QFileInfo venvPath("/usr/lib/python3.8");
+ 
+     // Prepend the bin directory to the path
+     add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+ 
+     // Find the webapp
+     QStringList paths;
+-    paths.append("../web/"); // Linux source tree
++    paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+     paths.append("../../web/"); // Windows source tree
+     paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..33a3bb8b22a
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,42 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.26
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=46b69668941c80da763b869b7dc6723ad502443d68e8012b7fccd3c99569475d
+patch_args="-Np1"
+
+do_configure() {
+	vsed -i runtime/ConfigWindow.ui \
+		-e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+	export PGADMIN_PYTHON_DIR=/usr
+	cd runtime
+	qmake CONFIG+=release
+	make
+}
+
+do_install() {
+	vbin runtime/pgAdmin4
+	vmkdir /usr/lib/pgadmin4
+	vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+	vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+	vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+	vlicense LICENSE
+}

From aa7202e77378165035dfdd34bbcd4e0dc5313e6b Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:23:15 +0200
Subject: [PATCH 02/10] New package: python3-Flask-Compress-1.5.0

---
 srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Compress/template

diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..3a11502405b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 25ed25acf66f25f668d0fbcb3f215d83801e18ca Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:24:03 +0200
Subject: [PATCH 03/10] New package: python3-Flask-Gravatar-0.5.0

---
 srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Gravatar/template

diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..645ba1cc31a
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+	vlicense LICENSE
+}

From 49ea0ec6566fdd7f296fe367ee5778c0ef8a7c4f Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:26:20 +0200
Subject: [PATCH 04/10] New package: python3-Flask-Migrate-2.5.3

---
 srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Migrate/template

diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..8b2e17d1ac9
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-migrate/"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+distfiles="$PYPI_SITE/F/Flask-Migrate/Flask-Migrate-${version}.tar.gz"
+checksum=4af1feb1b5e5a0332c11c3ebe7981228719776b73c0bfa28b4aead541dff46d8
+
+post_install() {
+	vlicense LICENSE
+}

From 1156e61ebaf4713c35a6eaeba820b3c3561459e9 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:30:31 +0200
Subject: [PATCH 05/10] New package: python3-Flask-Paranoid-0.2.0

---
 srcpkgs/python3-Flask-Paranoid/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Paranoid/template

diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..f7d02a959b5
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2.0
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-paranoid"
+distfiles="$PYPI_SITE/F/Flask-Paranoid/Flask-Paranoid-${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3
+
+post_install() {
+	vlicense LICENSE
+}

From 0781e1783980a727c06a53f617d0c5183f20869b Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:14 +0200
Subject: [PATCH 06/10] New package: python3-Flask-Principal-0.4.0

---
 srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Principal/template

diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..aab51163318
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pythonhosted.org/Flask-Principal/"
+changelog="https://pythonhosted.org/Flask-Principal/changelog.html"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+	vlicense LICENSE
+}

From a5c1e600b15752786b82101a51ef92f6ba96ca25 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:51 +0200
Subject: [PATCH 07/10] New package: python3-Flask-Security-Too-3.4.4

---
 srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Security-Too/template

diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..eb1a5dee0ed
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.4
+revision=1
+wrksrc="Flask-Security-Too-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="$PYPI_SITE/F/Flask-Security-Too/Flask-Security-Too-${version}.tar.gz"
+checksum=3c52b0e0c8453a012122aad102041fd71bd1ea025f5154bbfb1d20b4c6a4477e
+
+post_install() {
+	vlicense LICENSE
+}

From 1a5b230ca7e34f719fb7d70b522af37ce166c8a4 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:41:45 +0200
Subject: [PATCH 08/10] New package: python3-brotli-1.0.9

---
 srcpkgs/python3-brotli/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-brotli/template

diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..74c96a8f0f5
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.9
+revision=1
+wrksrc="brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles="https://github.com/google/brotli/archive/v${version}.tar.gz"
+checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46

From eeb68c3fa7c132747330efc89907157cdff63a94 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:45:09 +0200
Subject: [PATCH 09/10] New package: python3-speaklater-1.3

---
 srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-speaklater/template

diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..5963354fac6
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=1.3
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="custom:BSD"
+homepage="https://github.com/mitsuhiko/speaklater/"
+distfiles="$PYPI_SITE/s/speaklater/speaklater-${version}.tar.gz"
+checksum=59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9
+
+post_install() {
+	vlicense LICENSE
+}

From 9cb3d40e6cf6919d8cbc9a8fc21cd891244e7dfe Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:48:13 +0200
Subject: [PATCH 10/10] New package: python3-sshtunnel-0.1.5

---
 srcpkgs/python3-sshtunnel/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-sshtunnel/template

diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..e4f7f763f6f
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python SSH tunnels"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="$PYPI_SITE/s/sshtunnel/sshtunnel-${version}.tar.gz"
+checksum=c813fdcda8e81c3936ffeac47cb69cfb2d1f5e77ad0de656c6dab56aeebd9249
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] New package: pgadmin4-4.26
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
                   ` (6 preceding siblings ...)
  2020-10-05  6:54 ` [PR PATCH] [Updated] New package: pgadmin4-4.26 mustaqimM
@ 2020-10-05  7:08 ` mustaqimM
  2020-10-05  7:51 ` mustaqimM
  2021-11-06 23:53 ` [PR PATCH] [Closed]: " abenson
  9 siblings, 0 replies; 10+ messages in thread
From: mustaqimM @ 2020-10-05  7:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

There is an updated pull request by mustaqimM against master on the void-packages repository

https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201

New package: pgadmin4-4.26
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?

A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 15095 bytes --]

From 18f61645bc226d90765460fa1720e39525edccb2 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 05:56:13 +0200
Subject: [PATCH 01/10] New package: pgadmin4-4.26

---
 srcpkgs/pgadmin4/files/pgadmin4.desktop       | 11 +++++
 .../patches/hardcode-py-lib-location.patch    | 30 +++++++++++++
 srcpkgs/pgadmin4/template                     | 42 +++++++++++++++++++
 3 files changed, 83 insertions(+)
 create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
 create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
 create mode 100644 srcpkgs/pgadmin4/template

diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+     add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+     // Build (and canonicalise) the virtual environment path
+-    QFileInfo venvBinPath(app_dir + "/../venv/bin");
+-    QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+-    QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+-    QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+-    QFileInfo venvPath(app_dir + "/../venv");
++    QFileInfo venvBinPath("/usr/bin");
++    QFileInfo venvLibPath("/usr/lib/python3.8");
++    QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++    QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++    QFileInfo venvPath("/usr/lib/python3.8");
+ 
+     // Prepend the bin directory to the path
+     add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+ 
+     // Find the webapp
+     QStringList paths;
+-    paths.append("../web/"); // Linux source tree
++    paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+     paths.append("../../web/"); // Windows source tree
+     paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..33a3bb8b22a
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,42 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.26
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=46b69668941c80da763b869b7dc6723ad502443d68e8012b7fccd3c99569475d
+patch_args="-Np1"
+
+do_configure() {
+	vsed -i runtime/ConfigWindow.ui \
+		-e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+	export PGADMIN_PYTHON_DIR=/usr
+	cd runtime
+	qmake CONFIG+=release
+	make
+}
+
+do_install() {
+	vbin runtime/pgAdmin4
+	vmkdir /usr/lib/pgadmin4
+	vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+	vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+	vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+	vlicense LICENSE
+}

From aa7202e77378165035dfdd34bbcd4e0dc5313e6b Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:23:15 +0200
Subject: [PATCH 02/10] New package: python3-Flask-Compress-1.5.0

---
 srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Compress/template

diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..3a11502405b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 25ed25acf66f25f668d0fbcb3f215d83801e18ca Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:24:03 +0200
Subject: [PATCH 03/10] New package: python3-Flask-Gravatar-0.5.0

---
 srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Gravatar/template

diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..645ba1cc31a
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+	vlicense LICENSE
+}

From d2ff2679697dbe2402d3258add1a50529fa8957f Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:26:20 +0200
Subject: [PATCH 04/10] New package: python3-Flask-Migrate-2.5.3

---
 srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Migrate/template

diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..598cc3c7e76
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-migrate/"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+distfiles="$PYPI_SITE/F/Flask-Migrate/Flask-Migrate-${version}.tar.gz"
+checksum=a69d508c2e09d289f6e55a417b3b8c7bfe70e640f53d2d9deb0d056a384f37ee
+
+post_install() {
+	vlicense LICENSE
+}

From efd0e5e3e143e6462005ecd1ef6168a819cc740f Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:30:31 +0200
Subject: [PATCH 05/10] New package: python3-Flask-Paranoid-0.2.0

---
 srcpkgs/python3-Flask-Paranoid/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Paranoid/template

diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..f7d02a959b5
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2.0
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-paranoid"
+distfiles="$PYPI_SITE/F/Flask-Paranoid/Flask-Paranoid-${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3
+
+post_install() {
+	vlicense LICENSE
+}

From 003c7ff1a9b6ddd8bae9fee5657ff29cb0f66c22 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:14 +0200
Subject: [PATCH 06/10] New package: python3-Flask-Principal-0.4.0

---
 srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Principal/template

diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..aab51163318
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pythonhosted.org/Flask-Principal/"
+changelog="https://pythonhosted.org/Flask-Principal/changelog.html"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+	vlicense LICENSE
+}

From 17e75d7ecbb297b9a645176975ad47e35619f741 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:51 +0200
Subject: [PATCH 07/10] New package: python3-Flask-Security-Too-3.4.4

---
 srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Security-Too/template

diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..eb1a5dee0ed
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.4
+revision=1
+wrksrc="Flask-Security-Too-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="$PYPI_SITE/F/Flask-Security-Too/Flask-Security-Too-${version}.tar.gz"
+checksum=3c52b0e0c8453a012122aad102041fd71bd1ea025f5154bbfb1d20b4c6a4477e
+
+post_install() {
+	vlicense LICENSE
+}

From 6e3a0925d8989b8ee917c07eb6cf8329e00c0216 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:41:45 +0200
Subject: [PATCH 08/10] New package: python3-brotli-1.0.9

---
 srcpkgs/python3-brotli/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-brotli/template

diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..74c96a8f0f5
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.9
+revision=1
+wrksrc="brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles="https://github.com/google/brotli/archive/v${version}.tar.gz"
+checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46

From b17fdd828fd4354adf8681bfbab11b2b942f0726 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:45:09 +0200
Subject: [PATCH 09/10] New package: python3-speaklater-1.3

---
 srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-speaklater/template

diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..5963354fac6
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=1.3
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="custom:BSD"
+homepage="https://github.com/mitsuhiko/speaklater/"
+distfiles="$PYPI_SITE/s/speaklater/speaklater-${version}.tar.gz"
+checksum=59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9
+
+post_install() {
+	vlicense LICENSE
+}

From f59bb6e3cc49763fd922b087e876880eb7e6ee7d Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:48:13 +0200
Subject: [PATCH 10/10] New package: python3-sshtunnel-0.1.5

---
 srcpkgs/python3-sshtunnel/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-sshtunnel/template

diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..e4f7f763f6f
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python SSH tunnels"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="$PYPI_SITE/s/sshtunnel/sshtunnel-${version}.tar.gz"
+checksum=c813fdcda8e81c3936ffeac47cb69cfb2d1f5e77ad0de656c6dab56aeebd9249
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Updated] New package: pgadmin4-4.26
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
                   ` (7 preceding siblings ...)
  2020-10-05  7:08 ` mustaqimM
@ 2020-10-05  7:51 ` mustaqimM
  2021-11-06 23:53 ` [PR PATCH] [Closed]: " abenson
  9 siblings, 0 replies; 10+ messages in thread
From: mustaqimM @ 2020-10-05  7:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

There is an updated pull request by mustaqimM against master on the void-packages repository

https://github.com/mustaqimM/void-packages update_pgadmin
https://github.com/void-linux/void-packages/pull/23201

New package: pgadmin4-4.26
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?

A patch file from https://github.com/void-linux/void-packages/pull/23201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update_pgadmin-23201.patch --]
[-- Type: text/x-diff, Size: 15108 bytes --]

From 18f61645bc226d90765460fa1720e39525edccb2 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 05:56:13 +0200
Subject: [PATCH 01/10] New package: pgadmin4-4.26

---
 srcpkgs/pgadmin4/files/pgadmin4.desktop       | 11 +++++
 .../patches/hardcode-py-lib-location.patch    | 30 +++++++++++++
 srcpkgs/pgadmin4/template                     | 42 +++++++++++++++++++
 3 files changed, 83 insertions(+)
 create mode 100644 srcpkgs/pgadmin4/files/pgadmin4.desktop
 create mode 100644 srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
 create mode 100644 srcpkgs/pgadmin4/template

diff --git a/srcpkgs/pgadmin4/files/pgadmin4.desktop b/srcpkgs/pgadmin4/files/pgadmin4.desktop
new file mode 100644
index 00000000000..03d6845ddb1
--- /dev/null
+++ b/srcpkgs/pgadmin4/files/pgadmin4.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=pgAdmin4
+Exec=/usr/bin/pgAdmin4
+Icon=/usr/share/icons/pgAdmin4.png
+Type=Application
+Categories=Application;Development;
+MimeType=text/html
+GenericName=Management tool for PostgreSQL
+Comment=Management tools for PostgreSQL
+Keywords=database;db;sql;query;administration;development;
diff --git a/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
new file mode 100644
index 00000000000..4d8cdc86706
--- /dev/null
+++ b/srcpkgs/pgadmin4/patches/hardcode-py-lib-location.patch
@@ -0,0 +1,30 @@
+diff --git a/runtime/Server.cpp b/runtime/Server.cpp
+index 62f4a27f7..ba2783f0e 100644
+--- a/runtime/Server.cpp
++++ b/runtime/Server.cpp
+@@ -127,11 +127,11 @@ Server::Server(quint16 port, QString key, QString logFileName):
+     add_to_path(pythonHome, venvPath.canonicalFilePath());
+ #else
+     // Build (and canonicalise) the virtual environment path
+-    QFileInfo venvBinPath(app_dir + "/../venv/bin");
+-    QFileInfo venvLibPath(app_dir + "/../venv/lib/python");
+-    QFileInfo venvDynLibPath(app_dir + "/../venv/lib/python/lib-dynload");
+-    QFileInfo venvSitePackagesPath(app_dir + "/../venv/lib/python/site-packages");
+-    QFileInfo venvPath(app_dir + "/../venv");
++    QFileInfo venvBinPath("/usr/bin");
++    QFileInfo venvLibPath("/usr/lib/python3.8");
++    QFileInfo venvDynLibPath("/usr/lib/python3.8/lib-dynload");
++    QFileInfo venvSitePackagesPath("/usr/lib/python3.8/site-packages");
++    QFileInfo venvPath("/usr/lib/python3.8");
+ 
+     // Prepend the bin directory to the path
+     add_to_path(path_env, venvBinPath.canonicalFilePath(), true);
+@@ -265,7 +265,7 @@ bool Server::Init()
+ 
+     // Find the webapp
+     QStringList paths;
+-    paths.append("../web/"); // Linux source tree
++    paths.append("/usr/lib/pgadmin4/web/"); // Linux source tree
+     paths.append("../../web/"); // Windows source tree
+     paths.append("../../../../web/"); // Mac source tree (in a dev env)
+ #ifdef Q_OS_MAC
diff --git a/srcpkgs/pgadmin4/template b/srcpkgs/pgadmin4/template
new file mode 100644
index 00000000000..33a3bb8b22a
--- /dev/null
+++ b/srcpkgs/pgadmin4/template
@@ -0,0 +1,42 @@
+# Template file for 'pgadmin4'
+pkgname=pgadmin4
+version=4.26
+revision=1
+wrksrc="pgadmin4-${version}"
+hostmakedepends="qt5-qmake python3-devel qt5-host-tools qt5-devel"
+depends="python3-Flask python3-Flask-Login python3-Flask-Mail
+ python3-blinker python3-Flask-Paranoid python3-Flask-Security-Too python3-Flask-Principal
+ python3-passlib python3-Flask-WTF python3-speaklater python3-Flask-SQLAlchemy python3-simplejson python3-dateutil
+ python3-Flask-Migrate python3-alembic python3-psycopg2 python3-cryptography python3-sshtunnel python3-ldap3
+ python3-Flask-Gravatar python3-sqlparse python3-psutil python3-Flask-Compress"
+short_desc="Comprehensive design and management interface for PostgreSQL"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="PostgreSQL"
+homepage="http://www.pgadmin.org"
+distfiles="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v${version}/source/pgadmin4-${version}.tar.gz"
+checksum=46b69668941c80da763b869b7dc6723ad502443d68e8012b7fccd3c99569475d
+patch_args="-Np1"
+
+do_configure() {
+	vsed -i runtime/ConfigWindow.ui \
+		-e 's|/usr/pgadmin4/web|/usr/lib/pgadmin4/web|'
+}
+
+do_build() {
+	export PGADMIN_PYTHON_DIR=/usr
+	cd runtime
+	qmake CONFIG+=release
+	make
+}
+
+do_install() {
+	vbin runtime/pgAdmin4
+	vmkdir /usr/lib/pgadmin4
+	vcopy web /usr/lib/pgadmin4
+}
+
+post_install() {
+	vinstall "${FILESDIR}/pgadmin4.desktop" 644 usr/share/applications/
+	vinstall runtime/pgAdmin4.png 644 usr/share/icons/
+	vlicense LICENSE
+}

From aa7202e77378165035dfdd34bbcd4e0dc5313e6b Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:23:15 +0200
Subject: [PATCH 02/10] New package: python3-Flask-Compress-1.5.0

---
 srcpkgs/python3-Flask-Compress/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Compress/template

diff --git a/srcpkgs/python3-Flask-Compress/template b/srcpkgs/python3-Flask-Compress/template
new file mode 100644
index 00000000000..3a11502405b
--- /dev/null
+++ b/srcpkgs/python3-Flask-Compress/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Compress'
+pkgname=python3-Flask-Compress
+version=1.5.0
+revision=1
+wrksrc="flask-compress-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-brotli"
+short_desc="Compress responses in your Flask app with gzip or brotli"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/colour-science/flask-compress"
+distfiles="https://github.com/colour-science/flask-compress/archive/v${version}.tar.gz"
+checksum=692838db8293949fdc9af814be6313743fc77d37b9981a9418eb5f87f34b09c2
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 25ed25acf66f25f668d0fbcb3f215d83801e18ca Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:24:03 +0200
Subject: [PATCH 03/10] New package: python3-Flask-Gravatar-0.5.0

---
 srcpkgs/python3-Flask-Gravatar/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Gravatar/template

diff --git a/srcpkgs/python3-Flask-Gravatar/template b/srcpkgs/python3-Flask-Gravatar/template
new file mode 100644
index 00000000000..645ba1cc31a
--- /dev/null
+++ b/srcpkgs/python3-Flask-Gravatar/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Gravatar'
+pkgname=python3-Flask-Gravatar
+version=0.5.0
+revision=1
+wrksrc="Flask-Gravatar-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Small and simple integration of gravatar into flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="BSD-3-Clause"
+homepage="https://github.com/zzzsochi/flask-gravatar"
+distfiles="https://github.com/zzzsochi/flask-gravatar/archive/v${version}.tar.gz"
+checksum=9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55
+
+post_install() {
+	vlicense LICENSE
+}

From d2ff2679697dbe2402d3258add1a50529fa8957f Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:26:20 +0200
Subject: [PATCH 04/10] New package: python3-Flask-Migrate-2.5.3

---
 srcpkgs/python3-Flask-Migrate/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Migrate/template

diff --git a/srcpkgs/python3-Flask-Migrate/template b/srcpkgs/python3-Flask-Migrate/template
new file mode 100644
index 00000000000..598cc3c7e76
--- /dev/null
+++ b/srcpkgs/python3-Flask-Migrate/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Migrate'
+pkgname=python3-Flask-Migrate
+version=2.5.3
+revision=1
+wrksrc="Flask-Migrate-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="SQLAlchemy database migrations for Flask applications using Alembic "
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-migrate/"
+changelog="https://raw.githubusercontent.com/miguelgrinberg/Flask-Migrate/master/CHANGES.md"
+distfiles="$PYPI_SITE/F/Flask-Migrate/Flask-Migrate-${version}.tar.gz"
+checksum=a69d508c2e09d289f6e55a417b3b8c7bfe70e640f53d2d9deb0d056a384f37ee
+
+post_install() {
+	vlicense LICENSE
+}

From 3cfe1e93a33e911c3de0d644da081401dcc00619 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:30:31 +0200
Subject: [PATCH 05/10] New package: python3-Flask-Paranoid-0.2.0

---
 srcpkgs/python3-Flask-Paranoid/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Paranoid/template

diff --git a/srcpkgs/python3-Flask-Paranoid/template b/srcpkgs/python3-Flask-Paranoid/template
new file mode 100644
index 00000000000..66575a98f6c
--- /dev/null
+++ b/srcpkgs/python3-Flask-Paranoid/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Paranoid'
+pkgname=python3-Flask-Paranoid
+version=0.2
+revision=1
+wrksrc="flask-paranoid-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Simple user session protection"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/miguelgrinberg/flask-paranoid"
+distfiles="https://github.com/miguelgrinberg/flask-paranoid/archive/v${version}.tar.gz"
+checksum=cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3
+
+post_install() {
+	vlicense LICENSE
+}

From c055c38df13bcdfbd76b68d5831bde05745da698 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:14 +0200
Subject: [PATCH 06/10] New package: python3-Flask-Principal-0.4.0

---
 srcpkgs/python3-Flask-Principal/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Principal/template

diff --git a/srcpkgs/python3-Flask-Principal/template b/srcpkgs/python3-Flask-Principal/template
new file mode 100644
index 00000000000..aab51163318
--- /dev/null
+++ b/srcpkgs/python3-Flask-Principal/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-Flask-Principal'
+pkgname=python3-Flask-Principal
+version=0.4.0
+revision=1
+wrksrc="flask-principal-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Identity management for Flask"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pythonhosted.org/Flask-Principal/"
+changelog="https://pythonhosted.org/Flask-Principal/changelog.html"
+distfiles="https://github.com/mattupstate/flask-principal/archive/${version}.tar.gz"
+checksum=ed8c58943460d7d54c29463e2fe98ae4969d3818c0f59b36e9b2649128db96c9
+
+post_install() {
+	vlicense LICENSE
+}

From 0dd533b0c9a8a03eaa75e2bec514f393f4163c3c Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:33:51 +0200
Subject: [PATCH 07/10] New package: python3-Flask-Security-Too-3.4.4

---
 srcpkgs/python3-Flask-Security-Too/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-Flask-Security-Too/template

diff --git a/srcpkgs/python3-Flask-Security-Too/template b/srcpkgs/python3-Flask-Security-Too/template
new file mode 100644
index 00000000000..eb1a5dee0ed
--- /dev/null
+++ b/srcpkgs/python3-Flask-Security-Too/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-Flask-Security-Too'
+pkgname=python3-Flask-Security-Too
+version=3.4.4
+revision=1
+wrksrc="Flask-Security-Too-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Simple security for Flask apps"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://github.com/Flask-Middleware/flask-security/"
+distfiles="$PYPI_SITE/F/Flask-Security-Too/Flask-Security-Too-${version}.tar.gz"
+checksum=3c52b0e0c8453a012122aad102041fd71bd1ea025f5154bbfb1d20b4c6a4477e
+
+post_install() {
+	vlicense LICENSE
+}

From f161e90e388fad7b0b7b266cee8990b0c16bb3e8 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:41:45 +0200
Subject: [PATCH 08/10] New package: python3-brotli-1.0.9

---
 srcpkgs/python3-brotli/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/python3-brotli/template

diff --git a/srcpkgs/python3-brotli/template b/srcpkgs/python3-brotli/template
new file mode 100644
index 00000000000..74c96a8f0f5
--- /dev/null
+++ b/srcpkgs/python3-brotli/template
@@ -0,0 +1,13 @@
+# Template file for 'python3-brotli'
+pkgname=python3-brotli
+version=1.0.9
+revision=1
+wrksrc="brotli-${version}"
+build_style="python3-module"
+hostmakedepends="python3-setuptools python3-devel"
+short_desc="Python3 brotli module"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="Apache-2.0"
+homepage="https://pypi.org/project/Brotli/"
+distfiles="https://github.com/google/brotli/archive/v${version}.tar.gz"
+checksum=f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46

From aaa8ead4c9a0fe70f969dc01ea0c5e62fd7fdaec Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:45:09 +0200
Subject: [PATCH 09/10] New package: python3-speaklater-1.3

---
 srcpkgs/python3-speaklater/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/python3-speaklater/template

diff --git a/srcpkgs/python3-speaklater/template b/srcpkgs/python3-speaklater/template
new file mode 100644
index 00000000000..5963354fac6
--- /dev/null
+++ b/srcpkgs/python3-speaklater/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-speaklater'
+pkgname=python3-speaklater
+version=1.3
+revision=1
+wrksrc="speaklater-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Lazy strings for translations"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="custom:BSD"
+homepage="https://github.com/mitsuhiko/speaklater/"
+distfiles="$PYPI_SITE/s/speaklater/speaklater-${version}.tar.gz"
+checksum=59fea336d0eed38c1f0bf3181ee1222d0ef45f3a9dd34ebe65e6bfffdd6a65a9
+
+post_install() {
+	vlicense LICENSE
+}

From 9b855102f1677344000188f11fbf13036c2b9c52 Mon Sep 17 00:00:00 2001
From: mustaqim <git@mustaqim.ml>
Date: Mon, 5 Oct 2020 07:48:13 +0200
Subject: [PATCH 10/10] New package: python3-sshtunnel-0.1.5

---
 srcpkgs/python3-sshtunnel/template | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 srcpkgs/python3-sshtunnel/template

diff --git a/srcpkgs/python3-sshtunnel/template b/srcpkgs/python3-sshtunnel/template
new file mode 100644
index 00000000000..e4f7f763f6f
--- /dev/null
+++ b/srcpkgs/python3-sshtunnel/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-sshtunnel'
+pkgname=python3-sshtunnel
+version=0.1.5
+revision=1
+wrksrc="sshtunnel-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-paramiko"
+short_desc="Pure python SSH tunnels"
+maintainer="mustaqim <git@mustaqim.ml>"
+license="MIT"
+homepage="https://pypi.org/project/sshtunnel/"
+distfiles="$PYPI_SITE/s/sshtunnel/sshtunnel-${version}.tar.gz"
+checksum=c813fdcda8e81c3936ffeac47cb69cfb2d1f5e77ad0de656c6dab56aeebd9249
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PR PATCH] [Closed]: New package: pgadmin4-4.26
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
                   ` (8 preceding siblings ...)
  2020-10-05  7:51 ` mustaqimM
@ 2021-11-06 23:53 ` abenson
  9 siblings, 0 replies; 10+ messages in thread
From: abenson @ 2021-11-06 23:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

There's a closed pull request on the void-packages repository

New package: pgadmin4-4.26
https://github.com/void-linux/void-packages/pull/23201

Description:
I haven't as yet used it extensively but it seems to work. The executable is used only to launch the python backend; should I rename the package to just: `pgadmin4`?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-11-06 23:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23201@inbox.vuxu.org>
2020-07-07  6:32 ` [PR PATCH] [Updated] New package: pgadmin4-qt-4.22 mustaqimM
2020-07-07  6:35 ` [PR REVIEW] " mustaqimM
2020-07-09 16:16 ` [PR REVIEW] New package: pgadmin4-4.22 sgn
2020-07-09 16:19 ` sgn
2020-10-05  6:35 ` [PR PATCH] [Updated] " mustaqimM
2020-10-05  6:48 ` mustaqimM
2020-10-05  6:54 ` [PR PATCH] [Updated] New package: pgadmin4-4.26 mustaqimM
2020-10-05  7:08 ` mustaqimM
2020-10-05  7:51 ` mustaqimM
2021-11-06 23:53 ` [PR PATCH] [Closed]: " abenson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).