aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pyrsistent/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-pyrsistent/APKBUILD')
-rw-r--r--community/py3-pyrsistent/APKBUILD32
1 files changed, 20 insertions, 12 deletions
diff --git a/community/py3-pyrsistent/APKBUILD b/community/py3-pyrsistent/APKBUILD
index 9ed1d4d8271..571a04978c9 100644
--- a/community/py3-pyrsistent/APKBUILD
+++ b/community/py3-pyrsistent/APKBUILD
@@ -1,34 +1,42 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-pyrsistent
-pkgver=0.17.3
+pkgver=0.20.0
pkgrel=1
pkgdesc="Persistent/Functional/Immutable data structures"
url="https://github.com/tobgu/pyrsistent"
arch="all"
license="MIT"
-depends="py3-six"
-makedepends="py3-setuptools python3-dev"
+depends="python3"
+makedepends="
+ py3-gpep517
+ py3-setuptools
+ py3-wheel
+ python3-dev
+ "
checkdepends="py3-hypothesis py3-pytest py3-pytest-runner"
+subpackages="$pkgname-pyc"
source="pyrsistent-$pkgver.tar.gz::https://github.com/tobgu/pyrsistent/archive/v$pkgver.tar.gz"
builddir="$srcdir/pyrsistent-$pkgver"
provides="py-pyrsistent=$pkgver-r$pkgrel"
-prepare() {
- default_prepare
- sed -i 's/<5//g' setup.py
-}
-
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
check() {
- python3 setup.py test
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/*.whl
+ .testenv/bin/python3 -m pytest
}
package() {
- python3 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
}
-sha512sums="6e6129666801dd872938ed02b043e7b3447f400e261906dedf474872145c603a20ea6fada72eba320ab016064098032a62a9918db49d7f344d52f158b5914f47 pyrsistent-0.17.3.tar.gz"
+sha512sums="
+1cee104adb70f5e2c15a7d95dd3bae22ce73568607869cd8798571ba9c0242e25f80dbcede3df664f75f5271e56fa55248ff12f1c40d450f0788f2e4c749f843 pyrsistent-0.20.0.tar.gz
+"