[arch-commits] Commit in python-josepy/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 19:23:21 UTC 2020
Date: Monday, November 9, 2020 @ 19:23:20
Author: foutrelis
Revision: 748042
archrelease: copy trunk to community-staging-any
Added:
python-josepy/repos/community-staging-any/
python-josepy/repos/community-staging-any/PKGBUILD
(from rev 748041, python-josepy/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-josepy/repos/community-staging-any/PKGBUILD (from rev 748041, python-josepy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 19:23:20 UTC (rev 748042)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-josepy
+pkgver=1.5.0
+pkgrel=2
+pkgdesc="JOSE protocol implementation in Python"
+url="https://github.com/certbot/josepy"
+license=('PerlArtistic')
+arch=('any')
+depends=('python-cryptography' 'python-pyopenssl' 'python-setuptools')
+checkdepends=('python-pytest-runner' 'python-coverage' 'python-pytest-isort' 'python-pytest-cache'
+ 'python-pytest-cov' 'flake8' 'python-pytest-flake8' 'python-mock')
+source=("https://pypi.io/packages/source/j/josepy/josepy-$pkgver.tar.gz")
+sha512sums=('39ace649ae4fcefee3eb7fa749001645711de39dc17fd47f1ebf52981929e21bee9b6316d09c61b5478d3d652afc0659e7d5110d1e222e8dcbdc2bb831cb2d8d')
+
+prepare() {
+ # https://github.com/certbot/josepy/issues/24
+ sed -i 's/flake8-ignore = E501/flake8-ignore = E501 W504/' josepy-$pkgver/pytest.ini
+}
+
+build() {
+ cd josepy-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd josepy-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd josepy-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list