void-packages/srcpkgs/python-py/template
2020-09-13 15:38:14 -04:00

33 lines
795 B
Bash

# Template file for 'python-py'
pkgname=python-py
version=1.9.0
revision=1
wrksrc="py-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
checkdepends="python3-pytest"
short_desc="Python2 development support library"
maintainer="Orphaned <orphan@voidlinux.org>"
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=9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342
do_check() {
python3 -m pytest
}
post_install() {
vlicense LICENSE
}
python3-py_package() {
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}