[arch-commits] Commit in (4 files)

George Rawlinson grawlinson at gemini.archlinux.org
Wed Jun 8 01:30:37 UTC 2022


    Date: Wednesday, June 8, 2022 @ 01:30:36
  Author: grawlinson
Revision: 1228604

addpkg: python-psycopg 3.0.14-1

Added:
  python-psycopg/
  python-psycopg/repos/
  python-psycopg/trunk/
  python-psycopg/trunk/PKGBUILD

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

Added: python-psycopg/trunk/PKGBUILD
===================================================================
--- python-psycopg/trunk/PKGBUILD	                        (rev 0)
+++ python-psycopg/trunk/PKGBUILD	2022-06-08 01:30:36 UTC (rev 1228604)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=python-psycopg
+pkgver=3.0.14
+pkgrel=1
+pkgdesc='PostgreSQL database adapter for Python'
+arch=('x86_64')
+url='https://www.psycopg.org/psycopg3/'
+license=('LGPL3')
+depends=('python' 'postgresql-libs')
+makedepends=(
+  'git'
+  'cython'
+  'python-setuptools'
+  'python-wheel'
+  'python-pip'
+)
+checkdepends=('python-pytest' 'python-pytest-asyncio')
+_commit='59d541661d26766ef6b137a9f37d433ce75b97a2'
+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"
+
+  for subpackage in psycopg psycopg_c
+  do
+    python "$subpackage/setup.py" build
+  done
+}
+
+package(){
+  cd "$pkgname"
+
+  for subpackage in psycopg psycopg_c
+  do
+    python "$subpackage/setup.py" install --root="$pkgdir" --optimize=1 --skip-build
+  done
+}



More information about the arch-commits mailing list