From 5f7cd18e06554a20533f1dee8012ab22da304dd6 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 19 Jul 2017 02:59:13 +0000 Subject: python-itsdangerous: initial inclusion. dep of flexget --- .../python_modules/python-itsdangerous/PKGBUILD | 37 ++++++++++++++++++++++ .../python_modules/python-itsdangerous/__changelog | 1 + 2 files changed, 38 insertions(+) create mode 100644 abs/core/python_modules/python-itsdangerous/PKGBUILD create mode 100644 abs/core/python_modules/python-itsdangerous/__changelog diff --git a/abs/core/python_modules/python-itsdangerous/PKGBUILD b/abs/core/python_modules/python-itsdangerous/PKGBUILD new file mode 100644 index 0000000..4b643d8 --- /dev/null +++ b/abs/core/python_modules/python-itsdangerous/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase +# Contributor: Alexander Rødseth + +pkgname=('python2-itsdangerous') +pkgver=0.24 +pkgrel=3 +pkgdesc='Various helpers to pass trusted data to untrusted environments' +arch=('any') +url="http://pypi.python.org/pypi/itsdangerous" +license=('BSD') +makedepends=('python2') +source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}.tar.gz") +sha256sums=('b035b2da1d493b00a5ee7a5b750f96929de87b610643939fbe382902774626fc') + +prepare() { + cp -r "itsdangerous-$pkgver" "python-itsdangerous-$pkgver" + cp -r "itsdangerous-$pkgver" "python2-itsdangerous-$pkgver" +} + +package_python-itsdangerous() { + cd "$pkgname-$pkgver" + depends+=('python') + + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-itsdangerous() { + cd "$pkgname-$pkgver" + depends+=('python2') + + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-itsdangerous/__changelog b/abs/core/python_modules/python-itsdangerous/__changelog new file mode 100644 index 0000000..60db758 --- /dev/null +++ b/abs/core/python_modules/python-itsdangerous/__changelog @@ -0,0 +1 @@ +PKGBUILD: remove py3 stuff -- cgit v0.12