43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-scramp
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=scramp
|
|
pkgver=1.4.5
|
|
pkgrel=0
|
|
pkgdesc="Python implementation of the SCRAM protocol"
|
|
url="https://pypi.python.org/project/scramp"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-asn1crypto"
|
|
checkdepends="py3-pytest py3-passlib py3-pytest-mock"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-hatchling"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/tlocke/scramp/archive/refs/tags/$pkgver.tar.gz
|
|
use-local-version-src.patch
|
|
"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
subpackages="$pkgname-pyc"
|
|
|
|
build() {
|
|
echo "__version__ = \"$pkgver\"" > _version.py
|
|
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 -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
070bf5b92f45bd506cb0f6aeb4ff7fccfff9092b69bed20338a2cfdf84f5587b9162fa1ffb84db8c98ea5f3e008f34db5848690d857110e1d037bb15d2a95d58 py3-scramp-1.4.5.tar.gz
|
|
6ae94c1077040e3d219c62a82a81f13ccec97fcf089fb4b6e7551a2251da3bd14059ea1e344cb54207a41c0c9de59a2b9f57b1a5d1d8f98d1060d4197c1192c8 use-local-version-src.patch
|
|
"
|