[arch-commits] Commit in python-openid/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:53:35 UTC 2020


    Date: Monday, November 9, 2020 @ 16:53:34
  Author: foutrelis
Revision: 747664

archrelease: copy trunk to community-staging-any

Added:
  python-openid/repos/community-staging-any/
  python-openid/repos/community-staging-any/PKGBUILD
    (from rev 747662, python-openid/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-openid/repos/community-staging-any/PKGBUILD (from rev 747662, python-openid/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:53:34 UTC (rev 747664)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=python3-openid
+pkgname=python-openid
+pkgver=3.2.0
+pkgrel=2
+pkgdesc="Python 3 port of the python2-openid library"
+arch=('any')
+url="https://github.com/necaris/python3-openid"
+license=('Apache')
+depends=('python-defusedxml')
+makedepends=('python-setuptools')
+checkdepends=('python-coverage' 'python-django' 'python-httplib2'
+'python-mysqlclient' 'python-psycopg2' 'python-pycurl' 'python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('54412820fef21928e1bf30d16c9bc73d454e9ff41df028a12047c08abdb4c2c9e1d9053daebab8b0327cb0fe0f67e364c2506a47509fef6db5bff42f8399b799')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  coverage run -m unittest openid.test.test_suite
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 NEWS.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list