[arch-commits] Commit in python-pyspinel/repos (community-any community-any/PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Aug 1 10:27:45 UTC 2022


    Date: Monday, August 1, 2022 @ 10:27:44
  Author: dvzrv
Revision: 1259647

archrelease: copy trunk to community-any

Added:
  python-pyspinel/repos/community-any/
  python-pyspinel/repos/community-any/PKGBUILD
    (from rev 1259646, python-pyspinel/trunk/PKGBUILD)

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

Copied: python-pyspinel/repos/community-any/PKGBUILD (from rev 1259646, python-pyspinel/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-08-01 10:27:44 UTC (rev 1259647)
@@ -0,0 +1,37 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pyspinel
+pkgname=python-pyspinel
+pkgver=1.0.3
+pkgrel=1
+pkgdesc="A Python interface to the OpenThread Network Co-Processor (NCP)"
+arch=(any)
+url="https://github.com/openthread/openthread"
+license=(Apache)
+depends=(python-pyserial)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('0a48ef767bc07485836ba085baf0ad28c0d99aac5e090521b42da55d18f06ca7')
+b2sums=('3e29438b3b57395ba13a41f427671ff967413598ede16ef3ebec127b92f97b9b798e61bd0a54b3a4d8789e19be385d11a02a377fc084ec3de006a35e1262a60c')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  cd $_name-$pkgver
+  # install to temporary location, as importlib is used
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  # ignore broken tests: https://github.com/openthread/openthread/issues/7962
+  pytest -vv -k 'not(test_callback or test_prop_get or test_hdlc_encode or test_prop_get)' test_dir/$_site_packages/
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}



More information about the arch-commits mailing list