Date: Friday, December 2, 2022 @ 11:30:52
Author: dvzrv
Revision: 1356154
archrelease: copy trunk to community-any
Added:
python-tlv8/repos/community-any/
python-tlv8/repos/community-any/PKGBUILD
(from rev 1356153, python-tlv8/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-tlv8/repos/community-any/PKGBUILD (from rev 1356153,
python-tlv8/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-12-02 11:30:52 UTC (rev 1356154)
@@ -0,0 +1,33 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=tlv8
+pkgname=python-tlv8
+pkgver=0.10.0
+pkgrel=1
+pkgdesc="Python module to handle type-length-value (TLV) encoded data"
+arch=(any)
+url="https://github.com/jlusiardi/tlv8_python"
+license=(Apache)
+depends=(python)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+# tests not included in sdist tarball on pypi.org:
https://github.com/jlusiardi/tlv8_python/issues/17
+#
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+source=($_name-$pkgver.tar.gz::https://github.com/jlusiardi/tlv8_python/archive/refs/tags/v$pkgver.tar.gz)
+sha512sums=('46c1e85f5a9aec80771d0a3a56ebe72cd09f531f221dd015c0486fc1986d3a5624bcb2533850c88db9d7b462993820012e7c04c641f0d3e0e1466cb2ea12d94f')
+b2sums=('f66f4f5c678a0bdd7ca45878841739aad53eb119bf184ac4665e280611eb286cefa3a99355580793f97fe6a89580291cea812019e49ec64aad420fb6c4843c25')
+
+build() {
+ cd ${_name}_python-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ${_name}_python-$pkgver
+ python -m unittest discover -v
+}
+
+package() {
+ cd ${_name}_python-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 {CHANGES,README}.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}