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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 20:04:25 UTC 2019


    Date: Friday, October 25, 2019 @ 20:04:24
  Author: felixonmars
Revision: 519709

archrelease: copy trunk to community-staging-any

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

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

Copied: python-prawcore/repos/community-staging-any/PKGBUILD (from rev 519708, python-prawcore/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 20:04:24 UTC (rev 519709)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-prawcore
+pkgver=1.0.1
+pkgrel=3
+pkgdesc="Low-level communication layer for PRAW 4+."
+arch=('any')
+license=('BSD')
+url="https://github.com/praw-dev/prawcore"
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-betamax-matchers' 'python-betamax-serializers'
+              'python-testfixtures')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
+sha512sums=('6efe8faa685aa92a04309c4c24963a2a540335ad0bed31b990d840732ddf726789688171f4ead4daf831e89da5c95c17861a079dfc9ae3de254d2690bcff1c8b')
+
+check() {
+  cd prawcore-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd prawcore-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list