mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +03:00
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
# Contributor: Daiki Maekawa <daikimaekawa29@gmail.com>
|
|
# Maintainer: Daiki Maekawa <daikimaekawa29@gmail.com>
|
|
pkgname=py3-frozendict
|
|
_pkgname=frozendict
|
|
pkgver=2.3.5
|
|
pkgrel=1
|
|
pkgdesc="immutable dictionary"
|
|
url="https://github.com/Marco-Sulla/python-frozendict"
|
|
arch="all"
|
|
license="LGPL-3.0-or-later"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="py3-pytest"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
options="!check" # needs py311 compat
|
|
|
|
replaces="py-frozendict" # Backwards compatibility
|
|
provides="py-frozendict=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
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="
|
|
a5cdc87ac4a53666b0733192e3a7fd81f29b905c83ac78bc9a56837c1cb155b6875eec5314bba5e023104d497e75c4d2b4afb905a9e25d02534799690edca70f frozendict-2.3.5.tar.gz
|
|
"
|