mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 04:05:40 +03:00
51 lines
1.4 KiB
Text
51 lines
1.4 KiB
Text
# Contributor: Andy Hawkins <andy@gently.org.uk>
|
|
# Maintainer: Andy Hawkins <andy@gently.org.uk>
|
|
pkgname=py3-makefun
|
|
pkgver=1.16.0
|
|
pkgrel=1
|
|
pkgdesc="Small library to dynamically create python functions"
|
|
url="https://github.com/smarie/python-makefun"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-setuptools_scm
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-asyncio
|
|
py3-pytest-runner
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="
|
|
https://pypi.python.org/packages/source/m/makefun/makefun-$pkgver.tar.gz
|
|
specify-asyncio-mode.patch
|
|
"
|
|
# Patch is required until upstream applies https://github.com/smarie/python-makefun/pull/119
|
|
|
|
builddir="$srcdir/makefun-$pkgver"
|
|
|
|
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 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/makefun-$pkgver*-py2.py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
42edad79771331e2fc664affd975f681787124da9cdd1ea25adcad51a7d20e8b5499c8043899ca6f30c9fbf23888c16e2f7476e0f5d136d8ca43a8d8c93d5eb9 makefun-1.16.0.tar.gz
|
|
7c16b8b551d081e0669f58a323ac5ddb7cab7fd31cb8bb86a3914cc9097c0f317787820d7cce5aab91339060662b4dc34a5262eda6f701b7e624dbad3c7f42ec specify-asyncio-mode.patch
|
|
"
|