From cf09f1d9aee1df433ded7e6286dd54a7e79d7c5f Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 15 Apr 2016 23:40:30 +0200 Subject: [PATCH] python-jsonschema: get rid of vcversioner --- srcpkgs/python-jsonschema/template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python-jsonschema/template b/srcpkgs/python-jsonschema/template index 7740bafc721..36851a4cce5 100644 --- a/srcpkgs/python-jsonschema/template +++ b/srcpkgs/python-jsonschema/template @@ -1,13 +1,12 @@ # Template file for 'python-jsonschema' pkgname=python-jsonschema version=2.5.1 -revision=3 +revision=4 noarch=yes wrksrc="jsonschema-${version}" build_style=python-module python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools - python-vcversioner python3.4-vcversioner" +hostmakedepends="python-setuptools python3.4-setuptools" depends="python-setuptools python-functools32" pycompile_module="jsonschema" short_desc="Implementation of JSON Schema for Python2" @@ -17,6 +16,13 @@ license="MIT" distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz" checksum=36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41 +pre_build() { + sed -i setup.py \ + -e '/setup_requires/d' \ + -e '/vcversioner/d' \ + -e "/name=/a\ + version=\"${version}\"," +} post_install() { cp -f ${DESTDIR}/usr/bin/jsonschema{,3.4} replace_interpreter python ${DESTDIR}/usr/bin/jsonschema