2022-11-08 17:00:25 +01:00
|
|
|
# Template file for 'python3-installer'
|
|
|
|
pkgname=python3-installer
|
2022-12-10 18:22:41 +01:00
|
|
|
version=0.6.0
|
2022-11-08 17:00:25 +01:00
|
|
|
revision=1
|
|
|
|
# This package is used by the python3-pep517 build style; using that style here
|
|
|
|
# would create a build cycle
|
|
|
|
build_style=python3-module
|
|
|
|
hostmakedepends="python3-flit_core"
|
|
|
|
depends="python3"
|
|
|
|
checkdepends="python3-pytest-xdist"
|
|
|
|
short_desc="Low-level library for installing from a Python wheel"
|
|
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://installer.readthedocs.io/"
|
|
|
|
distfiles="${PYPI_SITE}/i/installer/installer-${version}.tar.gz"
|
2022-12-10 18:22:41 +01:00
|
|
|
checksum=f3bd36cd261b440a88a1190b1becca0578fee90b4b62decc796932fdd5ae8839
|
2022-11-08 17:00:25 +01:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
python3 -m flit_core.wheel
|
|
|
|
}
|
|
|
|
|
|
|
|
do_check() {
|
|
|
|
PYTHONPATH=src python3 -m pytest -n $XBPS_MAKEJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
local pypath="./src"
|
|
|
|
if [ -n "${PYTHONPATH}" ]; then
|
|
|
|
pypath="${pypath}:${PYTHONPATH}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
PYTHONPATH="${pypath}" python3 -m installer --destdir "${DESTDIR}" \
|
|
|
|
"dist/installer-${version}-py3-none-any.whl"
|
|
|
|
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|