blob: b67a82f358feba19ded66098666f6d390f916b82 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>
pkgbase=python-boto
pkgname=(python-boto python2-boto)
pkgver=2.38.0
pkgrel=1
pkgdesc='A Python interface to Amazon Web Services (AWS)'
arch=('any')
url='https://github.com/boto/boto'
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools' 'git')
checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-requests'
'python2-requests' 'python-httpretty' 'python2-httpretty')
source=("git+https://github.com/boto/boto.git#tag=$pkgver")
sha512sums=('SKIP')
prepare() {
cp -a boto{,-py2}
cd boto-py2
# python2 fix
find . -name '*.py' -type f -print0 | xargs -0 \
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_'
}
check() {
cd boto
python tests/test.py default
cd ../boto-py2
python2 tests/test.py default
}
package_python-boto() {
depends=('python')
cd boto
python setup.py install -O1 --root="$pkgdir"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Remove (somewhat deprecated) tools that conflicts with the python 2 version.
rm -r "$pkgdir/usr/bin"
}
package_python2-boto() {
depends=('python2')
conflicts=('python-boto<2.32.1-1')
replaces=('python-boto<2.32.1-1')
cd boto-py2
python2 setup.py install -O1 --root="$pkgdir"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|