From 5af6e9c8156d8d24610eb00c2bd5973001abbde2 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Mon, 3 Aug 2015 16:47:15 +0000 Subject: [PATCH] New package: python-oauthlib-1.0.1 --- srcpkgs/python-oauthlib/template | 33 ++++++++++++++++++++++++++++++++ srcpkgs/python3.4-oauthlib | 1 + 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/python-oauthlib/template create mode 120000 srcpkgs/python3.4-oauthlib diff --git a/srcpkgs/python-oauthlib/template b/srcpkgs/python-oauthlib/template new file mode 100644 index 00000000000..1ec790e4ba5 --- /dev/null +++ b/srcpkgs/python-oauthlib/template @@ -0,0 +1,33 @@ +# Template file for 'python-oauthlib' +pkgname=python-oauthlib +version=1.0.1 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +build_style=python-module +python_versions="2.7 3.4" +pycompile_module="oauthlib" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python" +short_desc="Python2 implementation of the OAuth request-signing logic" +maintainer="Eivind Uggedal " +license="BSD" +homepage="https://github.com/idan/oauthlib" +distfiles="${PYPI_SITE}/o/oauthlib/oauthlib-${version}.tar.gz" +checksum=2f1999a7c11f8714a1545de033b0950da77f651ff64f271d7dd9df15dc72049b + +post_install() { + vlicense LICENSE +} + +python3.4-oauthlib_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="oauthlib" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-oauthlib b/srcpkgs/python3.4-oauthlib new file mode 120000 index 00000000000..40cc6b88aba --- /dev/null +++ b/srcpkgs/python3.4-oauthlib @@ -0,0 +1 @@ +python-oauthlib \ No newline at end of file