mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
64 lines
1.5 KiB
Text
64 lines
1.5 KiB
Text
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
|
|
pkgname=b2-tools
|
|
pkgver=4.2.0
|
|
pkgrel=0
|
|
pkgdesc="Command-line tool for Backblaze B2"
|
|
url="https://github.com/Backblaze/B2_Command_Line_Tool"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-argcomplete
|
|
py3-arrow
|
|
py3-b2sdk
|
|
py3-docutils
|
|
py3-phx-class-registry
|
|
py3-platformdirs
|
|
py3-rst2ansi
|
|
py3-tabulate
|
|
py3-tqdm
|
|
python3
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-pdm-backend
|
|
py3-installer
|
|
py3-virtualenv
|
|
"
|
|
checkdepends="
|
|
py3-backoff
|
|
py3-more-itertools
|
|
py3-pexpect
|
|
py3-pytest-xdist
|
|
pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="
|
|
https://github.com/Backblaze/B2_Command_Line_Tool/archive/v$pkgver/b2-tools-$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir/B2_Command_Line_Tool-$pkgver"
|
|
|
|
export PDM_BUILD_SCM_VERSION="$pkgver"
|
|
|
|
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
|
|
# integration: tests require backblaze credentials
|
|
# forked: broken since pytest7: https://github.com/pytest-dev/pytest-forked/issues/67
|
|
.testenv/bin/python3 -m pytest -n"$(nproc)" -k 'not integration and not forked'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
fb6ac17f38e8c653b11d28670a2332c68afcc9dec20c7fb9e7aedaf0ad4ad9493fb8b3d1b95d344733aeb97203e528bf32c01c8b2bde3afde56734a3ae67dfe1 b2-tools-4.2.0.tar.gz
|
|
"
|