void-packages/srcpkgs/python-py/template
2018-08-28 06:45:30 -03:00

37 lines
862 B
Bash

# Template file for 'python-py'
pkgname=python-py
version=1.6.0
revision=1
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="Orpahend <orphan@voidlinux.eu>"
license="MIT"
homepage="https://github.com/pytest-dev/py"
changelog="https://github.com/pytest-dev/py/raw/master/CHANGELOG"
distfiles="${PYPI_SITE}/p/py/py-${version}.tar.gz"
checksum=06a30435d058473046be836d3fc4f27167fd84c45b99704f2fb5509ef61f9af1
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
}
}