Date: Thursday, January 18, 2018 @ 04:54:15 Author: felixonmars Revision: 283802
addpkg: python-josepy 1.0.1-1 Added: python-josepy/ python-josepy/repos/ python-josepy/trunk/ python-josepy/trunk/PKGBUILD ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Added: python-josepy/trunk/PKGBUILD =================================================================== --- python-josepy/trunk/PKGBUILD (rev 0) +++ python-josepy/trunk/PKGBUILD 2018-01-18 04:54:15 UTC (rev 283802) @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-josepy +pkgname=(python-josepy python2-josepy) +pkgver=1.0.1 +pkgrel=1 +pkgdesc="JOSE protocol implementation in Python" +url="https://github.com/certbot/josepy" +license=('PerlArtistic') +arch=('any') +makedepends=('python-cryptography' 'python2-cryptography' 'python-pyopenssl' 'python2-pyopenssl' + 'python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-coverage' 'python2-coverage' + 'python-pytest-isort' 'python2-pytest-isort' 'python-pytest-cache' + 'python2-pytest-cache' 'python-pytest-cov' 'python2-pytest-cov' 'flake8' + 'python2-flake8' 'python-pytest-flake8' 'python2-pytest-flake8' 'python-mock' + 'python2-mock') +source=("https://pypi.io/packages/source/j/josepy/josepy-$pkgver.tar.gz") +sha512sums=('51f0e1286a05ebc42f388d13e47e7bd2d1eb11ba1cf06f4d52d627d4a3c2d01f73f1ce9c9ff23ed7dd78ba18142af23e3de4277a63dc69b433bbc3e7aedfd6eb') + +prepare() { + cp -a josepy-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/josepy-$pkgver + python setup.py build + + cd "$srcdir"/josepy-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/josepy-$pkgver + python setup.py pytest + + cd "$srcdir"/josepy-$pkgver-py2 + python2 setup.py pytest +} + +package_python-josepy() { + depends=('python-cryptography' 'python-pyopenssl' 'python-setuptools') + + cd josepy-$pkgver + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-josepy() { + depends=('python2-cryptography' 'python2-pyopenssl' 'python2-setuptools') + + cd josepy-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} Property changes on: python-josepy/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property