36 lines
933 B
Bash
36 lines
933 B
Bash
# Template file for 'python3-wheel'
|
|
pkgname=python3-wheel
|
|
version=0.38.2
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-setuptools"
|
|
checkdepends="python3-pytest python3-devel $depends"
|
|
short_desc="Built-package format for Python (Python3)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/pypa/wheel"
|
|
distfiles="${PYPI_SITE}/w/wheel/wheel-${version}.tar.gz"
|
|
checksum=3d492ef22379a156ec923d2a77051cedfd4df4b667864e9e41ba83f0b70b7149
|
|
conflicts="python-wheel>=0"
|
|
|
|
do_check() {
|
|
|
|
vsed -e '/addopts/d' -i setup.cfg
|
|
|
|
# Must export PYTHONPATH so subprocesses see the variable
|
|
local _pypath="${PYTHONPATH}"
|
|
export PYTHONPATH="${PWD}/src:${PYTHONPATH}"
|
|
python3 -m pytest --ignore=tests/test_macosx_libfile.py
|
|
|
|
if [ -n "${_pypath}" ]; then
|
|
export PYTHONPATH="${_pypath}"
|
|
else
|
|
unset PYTHONPATH
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|