summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d014d852a6cf5e321bc4e49043148b4b4c1ee24e (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
36
37
38
39
40
# Maintainer: Alberto Redondo <albertomost at gmail dot com>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Chih-Hsuan Yen <yan12125@gmail.com>
# Contributor: Alexander 'z33ky' Hirsch <1zeeky@gmail.com>

_pkgname=requests-futures
pkgname=python-${_pkgname}
pkgver=1.0.0
pkgrel=3
pkgdesc='Asynchronous Python HTTP Requests for Humans'
arch=('any')
url='https://github.com/ross/requests-futures'
_url_pypi='https://pypi.org/project/requests-futures'
license=('Apache')
depends=('python-requests')
makedepends=('python-setuptools')
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
sha256sums=('35547502bf1958044716a03a2f47092a89efe8f9789ab0c4c528d9c9c30bc148')

build() {

  cd ${_pkgname}-${pkgver}

  python setup.py build

}

package() {

  cd ${_pkgname}-${pkgver}

  python setup.py install \
    -O1 \
    --root="${pkgdir}" \
    --skip-build

  install -Dvm644 'README.rst' \
    -t "${pkgdir}/usr/share/doc/${pkgname}"

}