From 24df711b823f9766e09c43f4d9a221599919b202 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 16 Feb 2016 23:56:36 +0100 Subject: [PATCH] New package: python-cached-property-1.3.0 --- srcpkgs/python-cached-property/template | 33 +++++++++++++++++++++++++ srcpkgs/python3.4-cached-property | 1 + 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/python-cached-property/template create mode 120000 srcpkgs/python3.4-cached-property diff --git a/srcpkgs/python-cached-property/template b/srcpkgs/python-cached-property/template new file mode 100644 index 00000000000..d2f9d8b14ce --- /dev/null +++ b/srcpkgs/python-cached-property/template @@ -0,0 +1,33 @@ +# Template file for 'python-cached-property' +pkgname=python-cached-property +version=1.3.0 +revision=1 +noarch=yes +wrksrc="cached-property-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python" +pycompile_module="cached_property.py" +short_desc="Decorator for caching properties in classes (Python2)" +maintainer="Alessio Sergi " +homepage="https://github.com/pydanny/cached-property" +license="3-clause-BSD" +distfiles="${PYPI_SITE}/c/cached-property/cached-property-${version}.tar.gz" +checksum=458e78b1c7286ece887d92c9bee829da85717994c5e3ddd253a40467f488bc81 + +post_install() { + vlicense LICENSE +} + +python3.4-cached-property_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="cached_property.py" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-cached-property b/srcpkgs/python3.4-cached-property new file mode 120000 index 00000000000..e3c4d2f4914 --- /dev/null +++ b/srcpkgs/python3.4-cached-property @@ -0,0 +1 @@ +python-cached-property \ No newline at end of file