aur-packages/python2-requests-futures/PKGBUILD

32 lines
990 B
Bash
Raw Permalink Normal View History

2019-04-26 06:31:04 -07:00
# Maintainer: trent palmer trenttdually at gmail
# 'inspired' by https://aur.archlinux.org/packages/python-requests-futures
# Contributor: Chih-Hsuan Yen <yan12125@gmail.com>
# Contributor: Alexander 'z33ky' Hirsch <1zeeky@gmail.com>
pkgname=python2-requests-futures
2019-06-27 05:57:26 -07:00
pkgver=1.0.0
2019-04-26 06:31:04 -07:00
pkgrel=1
pkgdesc='Asynchronous Python HTTP for Humans.'
license=('Apache')
arch=('any')
url='https://github.com/ross/requests-futures'
depends=('python2-requests' 'python2-futures')
makedepends=('python2-setuptools' 'python2-futures')
source=("https://files.pythonhosted.org/packages/source/r/requests-futures/requests-futures-${pkgver}.tar.gz")
2019-06-27 05:57:26 -07:00
sha256sums=('35547502bf1958044716a03a2f47092a89efe8f9789ab0c4c528d9c9c30bc148')
2019-04-26 06:31:04 -07:00
build() {
cd requests-futures-$pkgver
python2 setup.py build
}
check() {
cd requests-futures-$pkgver
python2 test_requests_futures.py
}
package() {
cd requests-futures-$pkgver
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}