Date: Tuesday, January 17, 2023 @ 06:19:29
Author: grawlinson
Revision: 1386720
archrelease: copy trunk to community-any
Added:
python-psycopg/repos/community-any/
python-psycopg/repos/community-any/PKGBUILD
(from rev 1386719, python-psycopg/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-psycopg/repos/community-any/PKGBUILD (from rev 1386719,
python-psycopg/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2023-01-17 06:19:29 UTC (rev 1386720)
@@ -0,0 +1,40 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+
+pkgname=python-psycopg
+pkgver=3.1.8
+pkgrel=1
+pkgdesc='PostgreSQL database adapter for Python'
+arch=('any')
+url='https://www.psycopg.org/psycopg3/'
+license=('LGPL3')
+depends=('python' 'postgresql-libs')
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+checkdepends=('python-pytest' 'python-pytest-asyncio')
+_commit='1ec7ed57f3c13a7bce3b817168325b30dbc35e6b'
+source=("$pkgname::git+https://github.com/psycopg/psycopg.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build(){
+ cd "$pkgname/psycopg"
+
+ python -m build --wheel --no-isolation
+}
+
+package(){
+ cd "$pkgname/psycopg"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}