ayaports/testing/py3-memcached/APKBUILD

47 lines
987 B
Text
Raw Normal View History

2022-12-27 15:40:33 -05:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=python-memcached
2023-03-31 16:26:25 -04:00
pkgname=py3-memcached
2022-12-27 15:40:33 -05:00
pkgver=1.59
2023-08-30 13:55:24 -04:00
pkgrel=0
2023-08-11 15:49:05 -04:00
arch="noarch"
2022-12-27 15:40:33 -05:00
pkgdesc="Python interface to memcached"
url="https://pypi.python.org/project/$_pyname"
license="Python-2.0"
2023-08-30 13:55:24 -04:00
depends="
py3-six
"
makedepends="
py3-setuptools
py3-wheel
py3-gpep517
py3-installer
"
checkdepends="
py3-pytest
"
options="!check" # Failing testsuite
2022-12-27 15:40:33 -05:00
source="$pkgname-$pkgver.tar.gz::https://github.com/linsomniac/python-memcached/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
2023-08-30 13:55:24 -04:00
subpackages="$pkgname-pyc"
2022-12-27 15:40:33 -05:00
build() {
2023-08-30 13:55:24 -04:00
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
2022-12-27 15:40:33 -05:00
}
check() {
2023-08-30 13:55:24 -04:00
pytest -v
2022-12-27 15:40:33 -05:00
}
package() {
2023-08-30 13:55:24 -04:00
python3 -m installer -d "$pkgdir" \
dist/*.whl
2022-12-27 15:40:33 -05:00
}
2023-08-30 13:55:24 -04:00
2022-12-27 15:40:33 -05:00
sha512sums="
d7ff45a329f2a9bf97fdc7c0268c2c67046c3501270fcf03578b955c2da35904d7bdecd4239924d390797ddff8f4cc69fc5743f4d4f663cdb9f2f8c7e8159512 py3-memcached-1.59.tar.gz
"