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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:45:24 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:45:24
  Author: felixonmars
Revision: 1063312

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aiopg/repos/community-staging-any/PKGBUILD (from rev 1063310, python-aiopg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:45:24 UTC (rev 1063312)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiopg
+pkgname=python-$_pkgname
+pkgver=1.3.1
+pkgrel=2
+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' 'python-async-timeout')
+makedepends=('python-setuptools')
+optdepends=('python-sqlalchemy: SQLAlchemy support')
+#checkdepends=('python-pytest-runner' 'python-sqlalchemy' 'python-docker')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('cd226c77cf741731cd04a6d2c1855da68de888cc1bc349d4a03d4b4b4a9ca1b56847173a5c8c99cb210604755ac669bcd8129b96ce3886ee5e9810d058d8d1c5')
+
+# TODO: fix tests (need docker)
+
+prepare() {
+  sed -i 's|install_requires = \["psycopg2-binary|install_requires = \["psycopg2|' $_pkgname-$pkgver/setup.py
+}
+
+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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list