35 lines
865 B
Bash
35 lines
865 B
Bash
# Template file for 'python-testpath'
|
|
pkgname=python-testpath
|
|
version=0.4.2
|
|
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="BSD-3-Clause"
|
|
distfiles="${PYPI_SITE}/t/testpath/testpath-${version}.tar.gz"
|
|
checksum=b694b3d9288dbd81685c5d2e7140b81365d46c29f5db4bc659de5aa6b98780f8
|
|
|
|
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
|
|
}
|
|
}
|