[arch-commits] Commit in python-minidb/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 14:48:41 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:48:41
Author: felixonmars
Revision: 1059339
archrelease: copy trunk to community-staging-any
Added:
python-minidb/repos/community-staging-any/
python-minidb/repos/community-staging-any/PKGBUILD
(from rev 1059337, python-minidb/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-minidb/repos/community-staging-any/PKGBUILD (from rev 1059337, python-minidb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:48:41 UTC (rev 1059339)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+_name=minidb
+pkgname=python-minidb
+pkgver=2.0.5
+pkgrel=2
+pkgdesc='Simple SQLite3 store for Python objects'
+arch=('any')
+url=https://thp.io/2010/minidb/
+license=('ISC')
+depends=('python')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('30fe89216eb141d5daae3efab2193589043408a2ab33af79654811b81994e964')
+b2sums=('31b500e420f256988ddaff7271b143f628aea5ebf0abe77125d9ce5143dca3d3d3fb1061c39d325d5df564514b786d751dec90d82fc3310c0f76daf1b4683d02')
+
+build() {
+ cd $_name-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd $_name-$pkgver
+ python -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 $_name-$pkgver
+ python 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
+}
More information about the arch-commits
mailing list