From 09f8bc70df16ad0996f32c3f480897b447600964 Mon Sep 17 00:00:00 2001 From: Roman Neuhauser Date: Mon, 23 Sep 2019 14:44:03 +0200 Subject: [PATCH 1/2] python3-PyJWT: fix template metadata --- srcpkgs/python3-PyJWT/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-PyJWT/template b/srcpkgs/python3-PyJWT/template index 6f0830125c1..4b43288cc18 100644 --- a/srcpkgs/python3-PyJWT/template +++ b/srcpkgs/python3-PyJWT/template @@ -6,9 +6,9 @@ wrksrc="PyJWT-${version}" build_style=python3-module pycompile_module="PyJWT.py" hostmakedepends="python3-setuptools" -short_desc="Platform independent file lock" +short_desc="Python implementation of RFC 7519 (Python3)" maintainer="fosslinux " -license="Unlicense" -homepage="https://filelock.readthedocs.io/en/latest/" +license="MIT" +homepage="https://pyjwt.readthedocs.io/en/latest/" distfiles="${PYPI_SITE}/P/PyJWT/PyJWT-${version}.tar.gz" checksum=8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96 From c77ee897df62b3745fc07bf019e159cfb00287c4 Mon Sep 17 00:00:00 2001 From: Roman Neuhauser Date: Mon, 23 Sep 2019 14:50:14 +0200 Subject: [PATCH 2/2] python-PyJWT: Python2 version of python3-PyJWT srcpkgs/python3-PyJWT is now a symlink to srcpkgs/python-PyJWT. --- srcpkgs/{python3-PyJWT => python-PyJWT}/template | 16 ++++++++++++---- srcpkgs/python3-PyJWT | 1 + 2 files changed, 13 insertions(+), 4 deletions(-) rename srcpkgs/{python3-PyJWT => python-PyJWT}/template (54%) create mode 120000 srcpkgs/python3-PyJWT diff --git a/srcpkgs/python3-PyJWT/template b/srcpkgs/python-PyJWT/template similarity index 54% rename from srcpkgs/python3-PyJWT/template rename to srcpkgs/python-PyJWT/template index 4b43288cc18..a3f09889e98 100644 --- a/srcpkgs/python3-PyJWT/template +++ b/srcpkgs/python-PyJWT/template @@ -1,14 +1,22 @@ # Template file for 'python3-PyJWT' -pkgname=python3-PyJWT +pkgname=python-PyJWT version=1.7.1 revision=1 wrksrc="PyJWT-${version}" -build_style=python3-module +build_style=python-module pycompile_module="PyJWT.py" -hostmakedepends="python3-setuptools" -short_desc="Python implementation of RFC 7519 (Python3)" +hostmakedepends="python-setuptools python3-setuptools" +short_desc="Python implementation of RFC 7519 (Python2)" maintainer="fosslinux " license="MIT" homepage="https://pyjwt.readthedocs.io/en/latest/" distfiles="${PYPI_SITE}/P/PyJWT/PyJWT-${version}.tar.gz" checksum=8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96 + +python3-PyJWT_package() { + depends=python3 + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-PyJWT b/srcpkgs/python3-PyJWT new file mode 120000 index 00000000000..2e6e08552e1 --- /dev/null +++ b/srcpkgs/python3-PyJWT @@ -0,0 +1 @@ +python-PyJWT \ No newline at end of file