mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 04:56:55 +02:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Peter Shkenev <santurysim@gmail.com>
|
|
pkgname=py3-mimeparse
|
|
_pkgname=python-mimeparse
|
|
pkgver=2.0.0
|
|
pkgrel=0
|
|
pkgdesc="Basic functions for parsing mime-types and matching media-ranges"
|
|
url="https://github.com/falconry/python-mimeparse"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/falconry/python-mimeparse/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-mimeparse" # Backwards compatibility
|
|
provides="py-mimeparse=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 mimeparse_test.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
81ea8da598d6d907f23b712f8ba9e9adb511dd53514c71733050afc3ce407ba0cbad915b018d1e72844575faf7f4796f0ccdc9e1d1e9c9778e11ac04c496ecd6 py3-mimeparse-2.0.0.tar.gz
|
|
"
|