[arch-commits] Commit in python-aiopg/repos (community-any community-any/PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Wed Aug 12 13:41:49 UTC 2020
Date: Wednesday, August 12, 2020 @ 13:41:48
Author: ffy00
Revision: 676356
archrelease: copy trunk to community-any
Added:
python-aiopg/repos/community-any/
python-aiopg/repos/community-any/PKGBUILD
(from rev 676355, python-aiopg/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-aiopg/repos/community-any/PKGBUILD (from rev 676355, python-aiopg/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-08-12 13:41:48 UTC (rev 676356)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiopg
+pkgname=python-$_pkgname
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='library for accessing a PostgreSQL database from the asyncio'
+arch=('any')
+url='https://github.com/aio-libs/aiopg'
+license=('BSD')
+depends=('python' 'python-psycopg2')
+makedepends=('python-setuptools')
+optdepends=('pythpn-sqlalchemy: SQLAlchemy support')
+#checkdepends=('python-pytest-runner' 'python-sqlalchemy' 'python-docker')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('1947be779ad5f2a0a38a8db5318f52cf1245a24f1c73ec67453e3dfc9ec507dd5aaf95a079aabb18228ba230c71c58a072a5de48a9165ddebd82ac0207bc059b')
+
+# TODO: fix tests (need docker)
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+}
+
+#check() {
+# cd $_pkgname-$pkgver
+#
+# python setup.py pytest
+#}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list