void-packages/srcpkgs/python-testpath/template

35 lines
867 B
Bash
Raw Normal View History

2017-05-09 13:45:45 +00:00
# Template file for 'python-testpath'
pkgname=python-testpath
2017-05-26 17:57:31 +00:00
version=0.3.1
2017-05-09 13:45:45 +00:00
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="https://github.com/jupyter/testpath/archive/${version}.tar.gz"
2017-05-26 17:57:31 +00:00
checksum=acd1e9ae3582e03b806ebcc40fbb2c660032d3f3ad991e5460e6856d69e6ba12
2017-05-09 13:45:45 +00:00
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
}
}