[arch-commits] Commit in python-asyncpg/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 19:10:46 UTC 2020
Date: Thursday, November 12, 2020 @ 19:10:46
Author: foutrelis
Revision: 753354
archrelease: copy trunk to community-staging-x86_64
Added:
python-asyncpg/repos/community-staging-x86_64/
python-asyncpg/repos/community-staging-x86_64/PKGBUILD
(from rev 753353, python-asyncpg/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-asyncpg/repos/community-staging-x86_64/PKGBUILD (from rev 753353, python-asyncpg/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-12 19:10:46 UTC (rev 753354)
@@ -0,0 +1,49 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=asyncpg
+pkgname=python-$_pkgname
+pkgver=0.21.0
+pkgrel=2
+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