blob: 56576e1bdb58b6e7117c5cd223b840ecf95a87a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Template file for 'python3-wheel'
pkgname=python3-wheel
version=0.36.2
revision=1
wrksrc="wheel-${version}"
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"
# upstream forgot to include LICENSE.txt in release
distfiles="${PYPI_SITE}/w/wheel/wheel-${version}.tar.gz
https://raw.githubusercontent.com/pypa/wheel/${version}/LICENSE.txt"
checksum="e11eefd162658ea59a60a0f6c7d493a7190ea4b9a85e335b33489d9f17e0245e
cca9e20c6af1fcfbf69408f377769286cbeebcded336100c9b4a3f35fbe635e4"
conflicts="python-wheel>=0"
skip_extraction="LICENSE.txt"
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 ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE.txt LICENSE
}
|