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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:01:35 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:01:35
  Author: felixonmars
Revision: 748373

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aiosqlite/repos/community-staging-any/PKGBUILD (from rev 748370, python-aiosqlite/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:01:35 UTC (rev 748373)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=aiosqlite
+pkgname=python-$_pkgname
+pkgver=0.16.0
+pkgrel=2
+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=('0e0840a8d89d03ba864153c140a9d095bc68f8c5f7fccad76c27f5bc3dc87aae299e1d61a32e959613ecf1ab51487b76973dab83783125da57375a5c2c3d6621')
+
+# 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