From a1819ffcb66d6e85a812303fc420b51ef1a7b7bb Mon Sep 17 00:00:00 2001 From: lemmi Date: Sun, 7 Jan 2018 13:05:54 +0100 Subject: [PATCH] python-jsonrpclib: add python3 module --- srcpkgs/python-jsonrpclib/template | 28 +++++++++++++++++++--------- srcpkgs/python3-jsonrpclib | 1 + 2 files changed, 20 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/python3-jsonrpclib diff --git a/srcpkgs/python-jsonrpclib/template b/srcpkgs/python-jsonrpclib/template index 34fdc948dea..f74945a8d28 100644 --- a/srcpkgs/python-jsonrpclib/template +++ b/srcpkgs/python-jsonrpclib/template @@ -1,16 +1,26 @@ # Template file for 'python-jsonrpclib' pkgname=python-jsonrpclib -version=0.1.7 -revision=1 +version=0.3.1 +revision=2 noarch=yes -wrksrc="jsonrpclib-${version}" -build_style=python2-module +wrksrc="jsonrpclib-pelix-${version}" +build_style=python-module pycompile_module="jsonrpclib" -hostmakedepends="python-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python" -short_desc="Python implementation of the JSON-RPC v2.0 specification" +short_desc="Python2 implementation of the JSON-RPC v2.0 specification" maintainer="Charles E. Lehner " -homepage="http://github.com/joshmarshall/jsonrpclib/" +homepage="https://github.com/tcalmant/jsonrpclib" license="Apache-2.0" -distfiles="${PYPI_SITE}/j/jsonrpclib/jsonrpclib-${version}.tar.gz" -checksum=7f50239d53b5e95b94455d5e1adae70592b5b71f0e960d3bbbfbb125788e6f0b +distfiles="${PYPI_SITE}/j/jsonrpclib-pelix/jsonrpclib-pelix-${version}.tar.gz" +checksum=5417b1508d5a50ec64f6e5b88907f111155d52607b218ff3ba9a777afb2e49e3 + +python3-jsonrpclib_package() { + noarch=yes + depends="python3" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +} + diff --git a/srcpkgs/python3-jsonrpclib b/srcpkgs/python3-jsonrpclib new file mode 120000 index 00000000000..aec0d39e82e --- /dev/null +++ b/srcpkgs/python3-jsonrpclib @@ -0,0 +1 @@ +python-jsonrpclib/ \ No newline at end of file