mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/py3-jmespath: modernize
This commit is contained in:
parent
3cd0e54f38
commit
6c4be714cd
@ -1,29 +1,27 @@
|
||||
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
|
||||
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
||||
pkgname=py3-jmespath
|
||||
_pkgname=jmespath
|
||||
pkgver=0.9.3
|
||||
pkgrel=1
|
||||
_pkgreal=${pkgname#py3-}
|
||||
pkgdesc="JMESPath is a query language for JSON"
|
||||
url="http://jmespath.org"
|
||||
url="https://jmespath.org"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
options="!check"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
replaces=py-jmespath # Backwards compatibility
|
||||
provides=py-jmespath=$pkgver-r$pkgrel # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build || return 1
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user