mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
# Contributor: 6543 <6543@obermui.de>
|
|
# Maintainer: 6543 <6543@obermui.de>
|
|
pkgname=py3-immutabledict
|
|
pkgver=2.2.4
|
|
pkgrel=1
|
|
pkgdesc="Fork of frozendict, an immutable wrapper around dictionaries for Python3"
|
|
url="https://github.com/corenting/immutabledict"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-poetry-core py3-gpep517 py3-installer"
|
|
checkdepends="python3 py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/corenting/immutabledict/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir"/immutabledict-$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/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
577070b9fff7937c92059de4d2db675c6d365b63c61d2b7a0ad8f774bb3cc8885a5e12cf8a2df5f23022740e3b1e8e2e3b8b8fdd486bdbf9dacb03ae5a063641 py3-immutabledict-2.2.4.tar.gz
|
|
"
|