vp-build/srcpkgs/python3-iwlib/template

33 lines
993 B
Bash

# Template file for 'python3-iwlib'
pkgname=python3-iwlib
version=1.7.0
revision=6
wrksrc="iwlib-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-cffi"
makedepends="python3-devel wireless_tools-devel libffi-devel"
depends="python3-cffi wireless_tools"
short_desc="Python Iwlib wrapper for interacting with wireless devices"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/nathan-hoad/python-iwlib"
distfiles="${PYPI_SITE}/i/iwlib/iwlib-${version}.tar.gz"
checksum=a805f6597a70ee3001aba8f039fb7b2dcb75dc15c4e7852f5594fd6379196da1
do_patch() {
# _iwlib_build.py try to load the shared object
# to verify if it's built correctly.
# Comment it out and restore it back after build
vsed -i iwlib/_iwlib_build.py \
-e '/ffibuilder\.verify/s/^/# /'
}
post_install() {
vsed -i ${DESTDIR}/${py3_sitelib}/iwlib/_iwlib_build.py \
-e '/ffibuilder\.verify/s/^# //'
}
do_check() {
python3 test/test_imports.py
}