[arch-commits] Commit in python-databases/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 04:00:18 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:00:17
Author: foutrelis
Revision: 748340
archrelease: copy trunk to community-staging-any
Added:
python-databases/repos/community-staging-any/
python-databases/repos/community-staging-any/PKGBUILD
(from rev 748338, python-databases/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-databases/repos/community-staging-any/PKGBUILD (from rev 748338, python-databases/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:00:17 UTC (rev 748340)
@@ -0,0 +1,48 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=databases
+pkgname=python-$_pkgname
+pkgver=0.4.0
+pkgrel=2
+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=('be12580a3bc7c16b390e82c60884dd25122dc2eb6990355988819080d8f6b2a9f620cc1bce85220ce7f85d9be19d7c26ae27cd3d7174a4b7c6178cabe5da80a0')
+
+# 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