35 lines
802 B
Bash
35 lines
802 B
Bash
# Template file for 'python-py'
|
|
pkgname=python-py
|
|
version=1.5.3
|
|
revision=1
|
|
wrksrc="${pkgname/python-//}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
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
|
|
noarch=yes
|
|
|
|
do_check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-py_package() {
|
|
noarch=yes
|
|
pycompile_module="py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|