void-packages/srcpkgs/python-testpath/template
2017-08-28 03:53:20 +02:00

34 lines
867 B
Bash

# Template file for 'python-testpath'
pkgname=python-testpath
version=0.3.1
revision=2
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"
checksum=acd1e9ae3582e03b806ebcc40fbb2c660032d3f3ad991e5460e6856d69e6ba12
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
}
}