mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
python-jmespath: fix python3 flavor
Also, add missing depends and alternatives.
This commit is contained in:
parent
61dddd83b7
commit
20cb37ece7
1 changed files with 10 additions and 6 deletions
|
@ -1,30 +1,34 @@
|
||||||
# Template file for 'python-jmespath'
|
# Template file for 'python-jmespath'
|
||||||
pkgname=python-jmespath
|
pkgname=python-jmespath
|
||||||
version=0.9.3
|
version=0.9.3
|
||||||
revision=1
|
revision=2
|
||||||
|
noarch=yes
|
||||||
wrksrc="jmespath.py-${version}"
|
wrksrc="jmespath.py-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module=jmespath
|
pycompile_module="jmespath"
|
||||||
noarch=yes
|
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
makedepends="python-devel python3-devel"
|
depends="python"
|
||||||
short_desc="JSON Query language for Python2"
|
short_desc="JSON Query language for Python2"
|
||||||
maintainer="yopito <pierre.bourgin@free.fr>"
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://jmespath.org"
|
homepage="http://jmespath.org"
|
||||||
distfiles="https://github.com/jmespath/jmespath.py/archive/${version}.tar.gz"
|
distfiles="https://github.com/jmespath/jmespath.py/archive/${version}.tar.gz"
|
||||||
checksum=88ca5ca1e1718e9c476f6904469de18a02ec8306e077ed58983b5050ab7348ac
|
checksum=88ca5ca1e1718e9c476f6904469de18a02ec8306e077ed58983b5050ab7348ac
|
||||||
|
alternatives="jmespath:jp.py:/usr/bin/jp.py2"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE.txt
|
vlicense LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-jmespath_package() {
|
python3-jmespath_package() {
|
||||||
pycompile_module=jmespath
|
noarch=yes
|
||||||
|
depends="python3"
|
||||||
|
pycompile_module="jmespath"
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="jmespath:jp.py:/usr/bin/jp.py3"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vlicense LICENSE.txt
|
vlicense LICENSE.txt
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
vmove /usr/bin/jp.py3
|
vmove usr/bin/*3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue