void-packages/srcpkgs/python3-multidict/template

30 lines
957 B
Bash

# Template file for 'python3-multidict'
pkgname=python3-multidict
version=4.5.1
revision=1
wrksrc="multidict-${version}"
build_style=python3-module
pycompile_module="multidict"
hostmakedepends="python3-Cython python3-setuptools"
makedepends="python3-devel"
checkdepends="python3-pytest"
short_desc="Multidict implementation from aiohttp"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="Apache-2.0"
#changelog="https://raw.githubusercontent.com/aio-libs/multidict/master/docs/changes.rst"
homepage="https://github.com/aio-libs/multidict"
distfiles="https://github.com/aio-libs/multidict/archive/v${version}.tar.gz"
checksum=fa065dbb3b7de377973d9c193c5b67618d012f337c57a5c3998ee3da325fcd02
do_check() {
# don't use pytest-runner
sed -i '/setup_requires=/d' setup.py
# don't enable coverage for tests
sed -i 's/pytest-cov//' setup.py
sed -i '/addopts/d' pytest.ini
cp -f build/lib.linux-*/multidict/*.so multidict
python3 -m pytest
}