mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
# Contributor: Fabricio Silva <hi@fabricio.dev>
|
|
# Maintainer: Fabricio Silva <hi@fabricio.dev>
|
|
pkgname=py3-qbittorrent-api
|
|
pkgver=2023.3.44
|
|
pkgrel=0
|
|
pkgdesc="Python client implementation for qBittorrent's Web API"
|
|
url="https://github.com/rmartin16/qbittorrent-api"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-requests
|
|
py3-setuptools
|
|
py3-six
|
|
python3
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-wheel
|
|
py3-sphinx-copybutton
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rmartin16/qbittorrent-api/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/qbittorrent-api-$pkgver"
|
|
# tests requires an instance of qbittorrent running
|
|
# net for sphinx
|
|
options="net !check"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
sphinx-build -W -b man docs/source man
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
install -Dm644 man/qbittorrent-api.1 -t "$pkgdir"/usr/share/man/man1
|
|
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
|
|
}
|
|
|
|
sha512sums="
|
|
a19b58aa48e88c5b95dbd4f594863fa479a0009df98bf08ba4c46830b3a7781148a29b5b960ca42f0b8d82405aba59833917ed6a619c3e287d1d19b12079eb26 py3-qbittorrent-api-2023.3.44.tar.gz
|
|
"
|