[arch-commits] Commit in python-aiosqlite/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Wed Aug 12 12:41:42 UTC 2020
Date: Wednesday, August 12, 2020 @ 12:41:42
Author: ffy00
Revision: 676333
upgpkg: python-aiosqlite 0.15.0-1
Added:
python-aiosqlite/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-08-12 12:41:42 UTC (rev 676333)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiosqlite
+pkgname=python-$_pkgname
+pkgver=0.15.0
+pkgrel=1
+pkgdesc='asyncio bridge to the standard sqlite3 module'
+arch=('any')
+url='https://github.com/omnilib/aiosqlite'
+license=('MIT')
+depends=('python-typing_extensions' 'python-pydantic')
+makedepends=('python-setuptools' 'python-dephell')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('2dba023666d8a9f5f6a796c7f8536843fed1ed349e87b666bb749b2c0bcfc6b97ae77f9016f57582625bc6b4490d464c48c0c13b40869212363d3908d6f18512')
+
+# TODO: package test requirements
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ dephell deps convert --from pyproject.toml --to 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
+}
+
More information about the arch-commits
mailing list