blob: 6eb7d9469d0b6d6c5e5757e90442e701de7d8a7e (
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
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Sam L. Yes <samlukeyes123 at gmail dot com>
_name=bce-python-sdk
pkgname=python-baidubce
pkgver=0.9.71
pkgrel=1
pkgdesc="BCE SDK for python"
url="https://pypi.org/project/${_name}"
depends=(python-pycryptodome python-six)
makedepends=(python-build python-installer python-setuptools python-wheel)
license=(Apache-2.0)
arch=(any)
source=(https://pypi.org/packages/source/${_name::1}/${_name}/${_name//-/_}-${pkgver}.tar.gz)
sha512sums=('e8cb57d73e59b87697e27e00ab9bb03e0a08844e7cf3a117196815ad9da6f4e39e8199ce6135c5eac595431a8ecfe7b1cbefb32e03471602501a9c702f983316')
build() {
cd ${_name//-/_}-${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd ${_name//-/_}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
}
|