[arch-commits] Commit in python-aiomysql/repos (community-any community-any/PKGBUILD)

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


    Date: Wednesday, August 12, 2020 @ 13:06:58
  Author: ffy00
Revision: 676346

archrelease: copy trunk to community-any

Added:
  python-aiomysql/repos/community-any/
  python-aiomysql/repos/community-any/PKGBUILD
    (from rev 676345, python-aiomysql/trunk/PKGBUILD)

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

Copied: python-aiomysql/repos/community-any/PKGBUILD (from rev 676345, python-aiomysql/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-08-12 13:06:58 UTC (rev 676346)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiomysql
+pkgname=python-$_pkgname
+pkgver=0.0.20
+pkgrel=1
+pkgdesc='library for accessing a MySQL database from the asyncio'
+arch=('any')
+url='https://github.com/aio-libs/aiomysql'
+license=('MIT')
+depends=('python' 'python-pymysql')
+makedepends=('python-setuptools')
+optdepends=('sqlalchemy: SQLAlchemy support')
+#checkdepends=('python-pytest-runner' 'python-ipdb' 'python-docker' 'python-sqlalchemy' 'python-uvloop')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('d182a638675e147bac5bc82826063e67376b97a4f58963991ad1146f97fc3bda0080a42cb7f2b826fd01b43797fc105c9ead50ab3f130f2ea08127a49c868164')
+
+# TODO: fix tests
+
+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