37 lines
820 B
Bash
37 lines
820 B
Bash
# Template file for 'python-py'
|
|
pkgname=python-py
|
|
version=1.5.3
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="py-${version}"
|
|
build_style=python-module
|
|
pycompile_module="py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
checkdepends="python3-pytest"
|
|
short_desc="Python2 development support library"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/pytest-dev/py"
|
|
distfiles="https://github.com/pytest-dev/py/archive/${version}.tar.gz"
|
|
checksum=c0698a6f71e9ea2a44e5bdf81f1ec8d5b5e9646e990c75fadeb133149aeb8440
|
|
|
|
do_check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-py_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|