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

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 3 00:47:12 UTC 2021


    Date: Friday, December 3, 2021 @ 00:47:11
  Author: foutrelis
Revision: 1064054

archrelease: copy trunk to community-staging-x86_64

Added:
  python-iwlib/repos/community-staging-x86_64/
  python-iwlib/repos/community-staging-x86_64/PKGBUILD
    (from rev 1064053, python-iwlib/trunk/PKGBUILD)

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

Copied: python-iwlib/repos/community-staging-x86_64/PKGBUILD (from rev 1064053, python-iwlib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-03 00:47:11 UTC (rev 1064054)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=iwlib
+pkgname=python-iwlib
+pkgver=1.7.0
+pkgrel=4
+pkgdesc='Python module to interface with iwlib'
+arch=('x86_64')
+url="https://github.com/nathan-hoad/python-iwlib"
+license=('GPL2')
+depends=('python-cffi' 'wireless_tools')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('c9909449f8b52fdd75e3135951fde2085abc5be622acd7be045a281f108b4f0bc5623f97b7b57a6b91f17170ea524bbb6a52626fa87877621873fe8b6b9f0bca')
+
+prepare() {
+  cd "${_name}-${pkgver}"
+  # fixing include discovery: https://github.com/nhoad/python-iwlib/issues/11
+  rm -v test/__init__.py
+}
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  local _py3_ver=$(python3 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))")
+  export PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver}/:${PYTHONPATH}"
+  py.test
+}
+
+package() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  # docs
+  install -vDm 644 {AUTHORS,README.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}



More information about the arch-commits mailing list