Date: Thursday, April 6, 2023 @ 15:04:19
  Author: felixonmars
Revision: 1439381

archrelease: copy trunk to community-staging-any

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

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

Copied: python-psycopg/repos/community-staging-any/PKGBUILD (from rev 1439377, 
python-psycopg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 15:04:19 UTC (rev 1439381)
@@ -0,0 +1,40 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+
+pkgname=python-psycopg
+pkgver=3.1.8
+pkgrel=2
+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 
+}

Reply via email to