void-packages/srcpkgs/python3-greenlet/template

34 lines
948 B
Bash

# Template file for 'python3-greenlet'
pkgname=python3-greenlet
version=3.0.3
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
depends="python3"
checkdepends="python3-objgraph python3-psutil"
short_desc="Lightweight in-process concurrent programming"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/python-greenlet/greenlet"
changelog="https://raw.githubusercontent.com/python-greenlet/greenlet/master/CHANGES.rst"
distfiles="${PYPI_SITE}/g/greenlet/greenlet-${version}.tar.gz"
checksum=43374442353259554ce33599da8b692d5aa96f8976d567d4badf263371fbe491
do_check() {
python3 setup.py build_ext --inplace
PYTHONPATH=src python3 -m unittest discover src
}
post_install() {
vlicense LICENSE
}
python3-greenlet-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove ${py3_inc}
}
}