[arch-commits] Commit in python-asyncpg/repos (2 files)

Filipe Laíns ffy00 at archlinux.org
Wed Aug 12 13:38:16 UTC 2020


    Date: Wednesday, August 12, 2020 @ 13:38:16
  Author: ffy00
Revision: 676354

archrelease: copy trunk to community-x86_64

Added:
  python-asyncpg/repos/community-x86_64/
  python-asyncpg/repos/community-x86_64/PKGBUILD
    (from rev 676353, python-asyncpg/trunk/PKGBUILD)

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

Copied: python-asyncpg/repos/community-x86_64/PKGBUILD (from rev 676353, python-asyncpg/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-08-12 13:38:16 UTC (rev 676354)
@@ -0,0 +1,49 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=asyncpg
+pkgname=python-$_pkgname
+pkgver=0.21.0
+pkgrel=1
+pkgdesc='A fast PostgreSQL Database Client Library for Python/asyncio'
+arch=('x86_64')
+url='https://github.com/MagicStack/asyncpg'
+license=('Apache')
+depends=('python')
+makedepends=('git' 'python-setuptools' 'cython')
+checkdepends=('python-pytest-runner' 'python-uvloop' 'postgresql')
+source=("git+$url.git#tag=v$pkgver"
+        'git+https://github.com/MagicStack/py-pgproto.git')
+sha512sums=('SKIP'
+            'SKIP')
+
+prepare() {
+  cd $_pkgname
+
+  git submodule init
+  git config submodule.asyncpg/pgproto.url "$srcdir"/py-pgproto
+  git submodule update
+
+  sed -i "s|'Cython==.*'|'Cython'|" setup.py
+}
+
+build() {
+  cd $_pkgname
+
+  python setup.py build_py build_ext
+}
+
+check() {
+  cd $_pkgname
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list