aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Perrotta <tbperrotta@gmail.com>2021-12-29 13:59:10 -0500
committerdispatch <dispatch@listserv.local>2021-12-29 19:07:26 +0000
commit54cc4eecd9c61b5f31587db63bf1f255588e142b (patch)
tree635a1362a2916d9ab333714136306a346a3d99c7
parent14739c855a88470460ebc4c19349d7e281a52d44 (diff)
downloadaports-patches/3854.tar.gz
aports-patches/3854.tar.bz2
aports-patches/3854.tar.xz
testing/py3-minidb: new aportpatches/3854
https://thp.io/2010/minidb Simple SQLite3 store for Python objects testing/ Signed-off-by: Thiago Perrotta <tbperrotta@gmail.com>
-rw-r--r--testing/py3-minidb/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/py3-minidb/APKBUILD b/testing/py3-minidb/APKBUILD
new file mode 100644
index 0000000000..13e9eefedf
--- /dev/null
+++ b/testing/py3-minidb/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Thiago Perrotta <tbperrotta@gmail.com>
+# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
+pkgname=py3-minidb
+pkgver=2.0.5
+pkgrel=0
+pkgdesc="Simple SQLite3 store for Python objects"
+url="https://thp.io/2010/minidb"
+arch="noarch"
+license="ISC"
+depends="python3"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+subpackages="$pkgname-doc"
+source="https://files.pythonhosted.org/packages/source/m/minidb/minidb-$pkgver.tar.gz"
+builddir="minidb-$pkgver/"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 -m venv --system-site-packages test-env
+ test-env/bin/python setup.py install --optimize=1 --skip-build
+ test-env/bin/python -m pytest
+}
+
+package() {
+ cd "$srcdir/$builddir"
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ sed -n '/# Copyright/,/OF THIS SOFTWARE./p' minidb.py > "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+sha512sums="
+889e678a99c7a5dff5ae7ae2c3540e978f09616384450934f2f16797a3a06c9d863b57eced4b2cde0a4bdfa4923b754e473bde0905c86d948d3bdb81a8e6dbad minidb-2.0.5.tar.gz
+"