archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-prawcore / repos / community-any / PKGBUILD
blob4360d4bd52ef537317bd7b5eb9109b8f53e6352b
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-prawcore
4 pkgver=2.3.0
5 pkgrel=4
6 pkgdesc="Low-level communication layer for PRAW 4+."
7 arch=('any')
8 license=('BSD')
9 url="https://github.com/praw-dev/prawcore"
10 depends=('python-requests')
11 makedepends=('python-setuptools')
12 checkdepends=('python-mock' 'python-betamax-matchers' 'python-betamax-serializers'
13               'python-testfixtures')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
15 sha512sums=('e6330ed370d987720c257913ca521ddd9129aea857792e9a17b9864c275034b795b2a577f4c2235877b165df91f0898bd8e4372b59224d6eb36d5efaa4a2d3f6')
17 check() {
18   cd prawcore-$pkgver
19   python setup.py test
22 package() {
23   cd prawcore-$pkgver
24   python setup.py install --root="$pkgdir" --optimize=1
25   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt