mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-oci
|
|
pkgver=2.151.0
|
|
pkgrel=0
|
|
pkgdesc="Oracle Cloud Infrastructure Python SDK"
|
|
url="https://docs.oracle.com/en-us/iaas/tools/python/2.53.1/index.html"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-certifi py3-circuitbreaker py3-cryptography py3-dateutil py3-openssl py3-tz"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-vcrpy"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname.$pkgver.tar.gz::https://github.com/oracle/oci-python-sdk/archive/refs/tags/v$pkgver.tar.gz
|
|
vcr.patch
|
|
"
|
|
builddir="$srcdir/oci-python-sdk-$pkgver"
|
|
options="!check" # argparse conflict (?)
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest tests
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
5c3c370d307257f7cf941106620cf81a9f0c584fcc6f893a0a3335bb04cf6265ea63399aa9445a63152a5c19fededf380ff6d4446645324746bc0de36962e119 py3-oci.2.151.0.tar.gz
|
|
e88495f19a3b9bd4b4b086007e2c93d6200aa316e93c1ec58b31794afb58967994f061a5ad1346edbbecd9119cea7a60c1e2ac6cba99f78b4e349b8f594ce01f vcr.patch
|
|
"
|