void-packages/srcpkgs/python-iwlib/template

32 lines
1018 B
Bash

# Template file for 'python-iwlib'
pkgname=python-iwlib
version=1.6.1
revision=1
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="iwlib"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel wireless_tools-devel libffi-devel"
depends="python wireless_tools"
short_desc="Python2 Iwlib wrapper for interacting with wireless devices"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="GPL-2.0-only"
homepage="https://github.com/nathan-hoad/python-iwlib"
distfiles="${PYPI_SITE}/i/iwlib/iwlib-${version}.tar.gz"
checksum=fad120e7e36de1c84df6921333035cdaccd28b20e25ba180e9902e810e8dee21
nocross=https://build.voidlinux.eu/builders/aarch64-musl_builder/builds/11458/steps/shell_3/logs/stdio
do_check() {
python3 test/test_imports.py
python2 test/test_imports.py
}
python3-iwlib_package() {
pycompile_module="iwlib"
depends="python3 wireless_tools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}