void-packages/srcpkgs/python3-greenlet/template

34 lines
969 B
Bash

# Template file for 'python3-greenlet'
pkgname=python3-greenlet
version=2.0.1
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 (Python3)"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
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=42e602564460da0e8ee67cb6d7236363ee5e131aa15943b6670e44e5c2ed0f67
do_check() {
python3 setup.py build_ext --inplace
PYTHONPATH=src python3 -m unittest discover src
}
post_install() {
vlicense LICENSE
}
python3-greenlet-devel_package() {
depends="python3-greenlet>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove ${py3_inc}
}
}