void-packages/srcpkgs/python3-multidict/template

25 lines
799 B
Bash

# Template file for 'python3-multidict'
pkgname=python3-multidict
version=5.0.2
revision=1
wrksrc="multidict-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
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=e5bf89fe57f702a046c7ec718fe330ed50efd4bcf74722940db2eb0919cddb1c
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
}