blob: aa961d2df9fe852090b4bba71f28c9cf855335ed (
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
41
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-requests
_pkgname=requests
pkgver=2.3.0
pkgrel=0
pkgdesc="A HTTP request library for Python"
url="http://www.python-requests.org/"
arch="noarch"
license="ASL 2.0"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="7449ffdc8ec9ac37bbcd286003c80f00 requests-2.3.0.tar.gz"
sha256sums="1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc requests-2.3.0.tar.gz"
sha512sums="4723bcdee7cd8c5b71177a065cdbd29bcd3bd92d69c1887f9cfdcde23b8b105006a7cf4a06f906b9f14a35154c43b4cc436f612c2505c6a463dda131ae3e92e9 requests-2.3.0.tar.gz"
|