aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2018-05-21 11:57:07 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-07-17 14:09:29 +0000
commitc94934c962e6dc90befa1bf8b5663d06f407a806 (patch)
treed218e1f09a05d43561af2c8b232556b176f95c64
parent2c617428d4924c81f493b31fdf517039cfa2e68b (diff)
downloadaports-c94934c962e6dc90befa1bf8b5663d06f407a806.tar.bz2
aports-c94934c962e6dc90befa1bf8b5663d06f407a806.tar.xz
testing/py2-backports_functools_lru_cache: New aport
Backport of functools.lru_cache from Python 3.3 as published at ActiveState https://pypi.org/project/backports.functools_lru_cache/
-rw-r--r--testing/py2-backports_functools_lru_cache/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/py2-backports_functools_lru_cache/APKBUILD b/testing/py2-backports_functools_lru_cache/APKBUILD
new file mode 100644
index 0000000000..79677c9a5b
--- /dev/null
+++ b/testing/py2-backports_functools_lru_cache/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
+pkgname=py2-backports_functools_lru_cache
+_pkgname=backports.functools_lru_cache
+pkgver=1.5
+pkgrel=0
+pkgdesc="Backport of functools.lru_cache from Python 3.3 as published at ActiveState"
+url="https://pypi.org/project/backports.functools_lru_cache/"
+arch="noarch"
+license="BSD-2-Clause"
+makedepends="python2-dev py-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+}
+
+package() {
+ cd "$builddir"
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py test
+}
+
+sha512sums="083a69beb050a6de0f838231ceae05cd1825f42310b2cd4f0e53f7ca043af4c699ad7042c32831ee365bb6b374d33189136e45689c77815b99773d145f0ef4f1 backports.functools_lru_cache-1.5.tar.gz"