From 6c65f87119dd44c82f3924417104ef6cdcf31e5c Mon Sep 17 00:00:00 2001 From: Peter Bui Date: Sun, 17 Jun 2018 04:53:14 -0400 Subject: [PATCH] New package: python-cachetools-2.1.0 Needed to update python-google-api-python-client --- srcpkgs/python-cachetools/template | 29 +++++++++++++++++++++++++++++ srcpkgs/python3-cachetools | 1 + 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/python-cachetools/template create mode 120000 srcpkgs/python3-cachetools diff --git a/srcpkgs/python-cachetools/template b/srcpkgs/python-cachetools/template new file mode 100644 index 00000000000..8684dc75840 --- /dev/null +++ b/srcpkgs/python-cachetools/template @@ -0,0 +1,29 @@ +# Template file for 'python-cachetools' +pkgname=python-cachetools +version=2.1.0 +revision=1 +noarch=yes +wrksrc="cachetools-${version}" +build_style=python-module +pycompile_module="cachetools" +hostmakedepends="python-setuptools python3-setuptools" +short_desc="Python2 extensible memoizing collections and decorators" +maintainer="Peter Bui " +homepage="https://github.com/tkem/cachetools/" +license="MIT" +distfiles="${PYPI_SITE}/c/cachetools/cachetools-${version}.tar.gz" +checksum=90f1d559512fc073483fe573ef5ceb39bf6ad3d39edc98dc55178a2b2b176fa3 + +post_install() { + vlicense LICENSE +} + +python3-cachetools_package() { + noarch=yes + pycompile_module="cachetools" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-cachetools b/srcpkgs/python3-cachetools new file mode 120000 index 00000000000..0c44f6208d1 --- /dev/null +++ b/srcpkgs/python3-cachetools @@ -0,0 +1 @@ +python-cachetools \ No newline at end of file