blob: 6c05beb2040196e1b2ead773d7f130958f64137f (
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
|
# Maintainer: devome <evinedeng@hotmail.com>
# Contributor: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: Alasdair Haswell <ali at arhaswell dot co dot uk>
_pkgname=apache-libcloud
pkgname=python-apache-libcloud
pkgver=3.8.0
pkgrel=2
pkgdesc="A standard Python library that abstracts away differences among multiple cloud provider APIs. "
arch=('any')
url="https://libcloud.apache.org"
license=('Apache-2.0')
depends=('python-requests')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
checkdepends=('libvirt-python' 'python-coverage' 'python-cryptography' 'python-fasteners' 'python-paramiko' 'python-pygal' 'python-pygaljs' 'python-pyopenssl'
'python-pytest' 'python-pytest-benchmark' 'python-pytest-timeout' 'python-pytest-xdist' 'python-requests' 'python-requests-mock')
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('75bf4c0b123bc225e24ca95fca1c35be30b19e6bb85feea781404d43c4276c91')
prepare() {
cd "${_pkgname}-${pkgver}"
sed -E \
-e "s|setuptools~=[0-9]+\.[^\"]+|setuptools|" \
-e "s|wheel~=[0-9]+\.[^\"]+|wheel|" \
-i pyproject.toml
}
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${_pkgname}-${pkgver}"
cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
pytest --noconftest -v --continue-on-collection-errors || true
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|