summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c309011134064b97cf18cd96204c95ce036b8ab (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
30
31
32
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>

pkgname=python-retryrequests
pkgver=0.2.0
pkgrel=1
pkgdesc='Library for HTTP requests using python-requests with exponential back-off retry'
arch=('any')
url='https://github.com/thombashi/retryrequests'
license=('MIT')
depends=('python-requests')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/r/retryrequests/retryrequests-$pkgver.tar.gz"
        "$pkgname-$pkgver.tar.gz.asc::https://files.pythonhosted.org/packages/source/r/retryrequests/retryrequests-$pkgver.tar.gz.asc")
sha256sums=('d82009abfbf7be105f153a4e460e24f761563743cc2de9f5e5d863b075d6ea5c'
            'SKIP')
validpgpkeys=('BCF9203E5E80B5607EAE6FDD98CDA9A5F0BFC367')

build() {
  cd "retryrequests-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  export PYTHONHASHSEED=0
  cd "retryrequests-$pkgver"
  python -m installer --destdir="$pkgdir/" dist/*.whl
  install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

# vim: ts=2 sw=2 et: