[arch-commits] Commit in python-josepy/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 21:14:04 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:14:04
Author: felixonmars
Revision: 1058896
archrelease: copy trunk to community-staging-any
Added:
python-josepy/repos/community-staging-any/
python-josepy/repos/community-staging-any/PKGBUILD
(from rev 1058895, python-josepy/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-josepy/repos/community-staging-any/PKGBUILD (from rev 1058895, python-josepy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 21:14:04 UTC (rev 1058896)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-josepy
+pkgver=1.10.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')
+source=("https://pypi.io/packages/source/j/josepy/josepy-$pkgver.tar.gz")
+sha512sums=('517476c4b4df35b066f48e20e2c31bf458b998553a740dbfa4a682a94353db1cc9d706cee9429cb34b9347e8d78b97bf4a8f930334b86febfe56f5c9f779b42f')
+
+prepare() {
+ # thou shalt not enforce coverage in distro packaging
+ # https://github.com/certbot/josepy/issues/34
+ rm josepy-$pkgver/pytest.ini
+}
+
+build() {
+ cd josepy-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd josepy-$pkgver
+ PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+ cd josepy-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list