void-packages/srcpkgs/python3-multidict/template

25 lines
787 B
Bash

# Template file for 'python3-multidict'
pkgname=python3-multidict
version=5.1.0
revision=5
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
depends="python3"
checkdepends="python3-pytest"
short_desc="Multidict implementation from aiohttp"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/aio-libs/multidict"
changelog="https://raw.githubusercontent.com/aio-libs/multidict/master/CHANGES.rst"
distfiles="${PYPI_SITE}/m/multidict/multidict-${version}.tar.gz"
checksum=25b4e5f22d3a37ddf3effc0710ba692cfc792c2b9edfb9c05aefe823256e84d5
do_check() {
# don't enable coverage for tests
vsed -e '/addopts/d' -i setup.cfg
cp -f build/lib.linux-*/multidict/*.so multidict
python3 -m pytest
}