35 lines
865 B
Bash
35 lines
865 B
Bash
# Template file for 'python-testpath'
|
|
pkgname=python-testpath
|
|
version=0.3
|
|
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"
|
|
checksum=01cc3cd59a59d42b238252774b9ebfc9d2af1d0d9bac81d7801409f570b1cda5
|
|
|
|
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
|
|
}
|
|
}
|