mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
pkgname=py3-jmespath
|
|
pkgver=1.0.1
|
|
pkgrel=3
|
|
pkgdesc="JMESPath is a query language for JSON"
|
|
url="https://jmespath.org"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/j/jmespath/jmespath-$pkgver.tar.gz"
|
|
builddir="$srcdir/jmespath-$pkgver"
|
|
|
|
replaces=py-jmespath # Backwards compatibility
|
|
provides=py-jmespath=$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="
|
|
a1c2424d859f732ba854fabf5e3e47cef88f782d6e9707e5f49f29ddef2fab391aa69866f2e70a58a5f4373a43ab098a787a9a03c15025acf46e5a25243513fb jmespath-1.0.1.tar.gz
|
|
"
|