summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dda651bbb01f2d11343e043d42910dd0aeb55baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Frederik Schwan <freswa at archlinux dot org>

pkgname=python-requests-gpgauthlib
pkgver=0.1.2
pkgrel=2
pkgdesc='A GPGAuth Client in Python'
arch=('any')
url='https://github.com/liip/requests_gpgauthlib'
license=('GPL3')
depends=('python' 'python-gnupg' 'python-requests')
makedepends=('python-setuptools' 'python-pytest' 'python-tests' 'python-mock' 'python-requests-mock')
source=("https://github.com/liip/requests_gpgauthlib/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
b2sums=('ee17a073377f7b413bb9377b04ba99188794cf67433c60d087f667bd89e479e470f6a1f3e4d564cd90981300a3734f68d14cb66e25e20828ff27c7f17386cbf6')

build() {
  cd requests_gpgauthlib-${pkgver}
  python setup.py build
}

# fails atm
# check() {
#   cd requests_gpgauthlib-${pkgver}
#   python -m pytest
# }

package() {
  cd requests_gpgauthlib-${pkgver}
  NO_THIRD_PARTY=true python setup.py install --skip-build --root="${pkgdir}" --optimize=1
}