void-packages/srcpkgs/python-testpath/template

35 lines
856 B
Bash

# Template file for 'python-testpath'
pkgname=python-testpath
version=0.4.1
revision=1
noarch=yes
wrksrc="testpath-${version}"
build_style=python-module
pycompile_module="testpath"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Test utilities for code working with files and commands (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/testpath"
license="MIT"
distfiles="${PYPI_SITE}/t/testpath/testpath-${version}.tar.gz"
checksum=e4824c689b97e3cfc76b440add3d20a4bb28a671079787a3d07a6bc3ba3d1eca
pre_build() {
rm -f testpath/cli-*.exe
}
post_install() {
vlicense LICENSE
}
python3-testpath_package() {
noarch=yes
depends="python3"
pycompile_module="testpath"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}