Date: Monday, January 2, 2023 @ 02:52:09
  Author: grawlinson
Revision: 1372853

archrelease: copy trunk to community-any

Added:
  python-psycopg/repos/community-any/
  python-psycopg/repos/community-any/PKGBUILD
    (from rev 1372852, python-psycopg/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-psycopg/repos/community-any/PKGBUILD (from rev 1372852, 
python-psycopg/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2023-01-02 02:52:09 UTC (rev 1372853)
@@ -0,0 +1,44 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+
+pkgname=python-psycopg
+pkgver=3.1.7
+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='cefcafff6e29e534f7a6ce5ba9a7e97f1bd193c2'
+source=("$pkgname::git+https://github.com/psycopg/psycopg.git#commit=$_commit";)
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+}
+
+build(){
+  cd "$pkgname/psycopg"
+
+  python -m build --wheel --no-isolation
+}
+
+package(){
+  cd "$pkgname/psycopg"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl 
+}

Reply via email to