mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 23:42:57 +02:00
python-jsonschema: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
56b6f4f144
commit
a5d66035dd
2 changed files with 17 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-jsonschema'
|
# Template file for 'python-jsonschema'
|
||||||
pkgname=python-jsonschema
|
pkgname=python-jsonschema
|
||||||
version=2.5.1
|
version=2.5.1
|
||||||
revision=4
|
revision=5
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="jsonschema-${version}"
|
wrksrc="jsonschema-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
||||||
depends="python-setuptools python-functools32"
|
depends="python-setuptools python-functools32"
|
||||||
pycompile_module="jsonschema"
|
pycompile_module="jsonschema"
|
||||||
short_desc="Implementation of JSON Schema for Python2"
|
short_desc="Implementation of JSON Schema for Python2"
|
||||||
|
@ -15,7 +14,7 @@ homepage="https://github.com/Julian/jsonschema"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
||||||
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41
|
||||||
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema2.7"
|
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema2"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i setup.py \
|
sed -i setup.py \
|
||||||
|
@ -28,16 +27,22 @@ post_install() {
|
||||||
vlicense COPYING LICENSE
|
vlicense COPYING LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-jsonschema_package() {
|
python3-jsonschema_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4-setuptools"
|
depends="python3-setuptools"
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="jsonschema"
|
pycompile_module="jsonschema"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-jsonschema>=0"
|
||||||
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema3.4"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema3"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/jsonschema3.4
|
vmove usr/bin/jsonschema3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
vlicense COPYING LICENSE
|
vlicense COPYING LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-jsonschema_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-jsonschema>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-jsonschema
Symbolic link
1
srcpkgs/python3-jsonschema
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-jsonschema
|
Loading…
Add table
Reference in a new issue