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

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


    Date: Wednesday, August 12, 2020 @ 13:55:51
  Author: ffy00
Revision: 676360

archrelease: copy trunk to community-any

Added:
  python-databases/repos/community-any/
  python-databases/repos/community-any/PKGBUILD
    (from rev 676359, python-databases/trunk/PKGBUILD)

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

Copied: python-databases/repos/community-any/PKGBUILD (from rev 676359, python-databases/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-08-12 13:55:51 UTC (rev 676360)
@@ -0,0 +1,48 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=databases
+pkgname=python-$_pkgname
+pkgver=0.3.2
+pkgrel=1
+pkgdesc='Async database support for Python'
+arch=('any')
+url='https://github.com/encode/databases'
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+optdepends=('python-asyncpg: postgresql support'
+            'python-psycopg2: postgresql support'
+            'python-aiopg: postgresql + aiopg support'
+            'python-aiomysql: mysql support'
+            'python-pymysql: mysql support'
+            'python-aiosqlite: sqlite support')
+#checkdepends=('python-pytest-runner' 'python-asyncpg' 'python-psycopg2' 'python-aiopg'
+#              'python-aiomysql' 'python-pymysql' 'python-aiosqlite' 'python-sqlalchemy'
+#              'python-starlette' 'python-requests')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('dc5894e240709ac2f71eca816c1fed745478811bf2c5c2faca5aec7f115af5a15d9acd684816d09d94ff7cd2d4450eca14ff5874cf5ec5d62261f19a6439ba0c')
+
+# TODO: fix tests (need databases)
+
+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
+  rm "$pkgdir"/usr/LICENSE.md
+
+  install -Dm 644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list