[arch-commits] Commit in python-josepy/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jan 18 04:54:35 UTC 2018
Date: Thursday, January 18, 2018 @ 04:54:34
Author: felixonmars
Revision: 283803
archrelease: copy trunk to community-any
Added:
python-josepy/repos/community-any/
python-josepy/repos/community-any/PKGBUILD
(from rev 283802, python-josepy/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-josepy/repos/community-any/PKGBUILD (from rev 283802, python-josepy/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-01-18 04:54:34 UTC (rev 283803)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at 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
+}
More information about the arch-commits
mailing list