Commit 611c73d2 authored by Francesco Colista's avatar Francesco Colista
Browse files

community/py3-multidict-gns3: new aport as dependency of gns3

py3-aiohttp needs an older version of py3-multidict.
It's needed to make gns3 works.
Since is specific for this package, -gns3 suffix is
appended and will be added to py3-aiohttp-gns3

This commit fixes the issue:
alpine/aports#12334
parent 45eaa3c9
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-multidict-gns3
_pkgname=multidict
pkgver=5.0.0
pkgrel=0
pkgdesc="The multidict implementation - GNS3 compatible version"
url="https://github.com/aio-libs/multidict/"
arch="all"
license="Apache-2.0"
depends="python3"
checkdepends="py3-pytest py3-pytest-cov"
makedepends="python3-dev py3-setuptools cython !py3-multidict"
subpackages="$pkgname-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/aio-libs/multidict/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!strip"
build() {
(cd multidict && find -name '*.pyx' -exec cython {} \;)
python3 setup.py build
}
check() {
python3 -m pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
rm -f "$pkgdir"/usr/lib/python3*/site-packages/*.c
rm -f "$pkgdir"/usr/lib/python3*/site-packages/*.h
}
sha512sums="067bad79b331a4b86d023f59af842e5fa99fa50d09df13538a86e6c1c754b1862b8fa812381149f2efcd19f1a7ec6934f583cddf47c635dce909ea8c7847f411 multidict-5.0.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment