summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d26b06cba46dbdce7b9427e7c114a5677526d45 (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
33
34
35
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Arvedui <arvedui@posteo.de>

pkgname=python2-retrying
_name=${pkgname#python2-}
pkgver=1.3.3
pkgrel=13
pkgdesc='A general purpose Python retyring library (Python 2 package)'
arch=('any')
url="https://pypi.org/project/${_name}/${pkgver}/"
license=('Apache')
depends=(
  'python2'
  'python-six'
)
makedepends=('python2-setuptools')
_tarname="${_name}-${pkgver}"
source=("${_tarname}::https://github.com/rholder/${_name}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('2c518ca887dddc35bad421ad75c76cb88f08a0965272816af8667b1b151eca2dda1b0b198607f26dcda2df547ba2cb317ac927ebfc5891cd8c6203ded619f1e1')

build() {
  cd "${_tarname}"
  python2 setup.py build
}

check() {
  cd "${_tarname}"
  python2 setup.py test
}

package() {
  cd "${_tarname}"
  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}