mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 10:03:51 +02:00
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'python-jsonschema'
|
|
pkgname=python-jsonschema
|
|
version=2.6.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="jsonschema-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-functools32"
|
|
pycompile_module="jsonschema"
|
|
short_desc="Implementation of JSON Schema for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/Julian/jsonschema"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
|
checksum=6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02
|
|
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema2"
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e '/setup_requires/d' \
|
|
-e '/vcversioner/d' \
|
|
-e "/name=/a\
|
|
version=\"${version}\","
|
|
}
|
|
post_install() {
|
|
vlicense COPYING LICENSE
|
|
}
|
|
|
|
python3-jsonschema_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools"
|
|
pycompile_module="jsonschema"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="jsonschema:jsonschema:/usr/bin/jsonschema3"
|
|
pkg_install() {
|
|
vmove usr/bin/jsonschema3
|
|
vmove usr/lib/python3*
|
|
vlicense COPYING LICENSE
|
|
}
|
|
}
|