summaryrefslogtreecommitdiff
path: root/pcr/python-pyutil
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-18 10:35:05 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-18 10:37:16 +0100
commit92c04e61e971b4c129e641b2e5ea2f2036e9cb9f (patch)
treef8bbb93e9d5ac025d97662c3b70b34acdc81adfc /pcr/python-pyutil
parent9320730ec7d9f3808114ab4fedc750d87aa29a16 (diff)
downloadabslibre-92c04e61e971b4c129e641b2e5ea2f2036e9cb9f.tar.gz
abslibre-92c04e61e971b4c129e641b2e5ea2f2036e9cb9f.tar.bz2
abslibre-92c04e61e971b4c129e641b2e5ea2f2036e9cb9f.zip
pcr/python-pyutil: moved from pcr/pyutil and updated
Diffstat (limited to 'pcr/python-pyutil')
-rw-r--r--pcr/python-pyutil/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/python-pyutil/PKGBUILD b/pcr/python-pyutil/PKGBUILD
new file mode 100644
index 000000000..964c8fc4a
--- /dev/null
+++ b/pcr/python-pyutil/PKGBUILD
@@ -0,0 +1,27 @@
+# repolint: reason=asdeps
+
+_pkgname=pyutil
+pkgname=(python{,2}-$_pkgname)
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="a collection of utilities for Python programmers"
+arch=(any)
+url="https://pypi.python.org/pypi/pyutil"
+license=(GPL2)
+
+makedepends=(python{,2}-setuptools)
+checkdepends=(python{,2}-twisted python{,2}-mock)
+source=("https://pypi.python.org/packages/source/p/pyutil/pyutil-${pkgver}.tar.gz")
+sha256sums=('8e254aa0a3b59e90515f7bca7ebc467b20a8d3fd2e26b63d196655c075da8d38')
+
+_package() {
+ depends=($1)
+ optdepends=($1-simplejson $1-zbase32)
+ cd "$srcdir"/$_pkgname-$pkgver
+ $1 setup.py install --root="$pkgdir"
+ rm -r "$pkgdir"/usr/pyutil
+}
+
+for pkg in "${pkgname[@]}"; do
+ eval "package_$pkg () { _package ${pkg%%-*}; }"
+done