mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/py3-googletrans: build with gpep517
This commit is contained in:
parent
16ba913efa
commit
99d0279ef5
@ -2,7 +2,7 @@
|
||||
# Maintainer: Eloi Torrents <eloitor@disroot.org>
|
||||
pkgname=py3-googletrans
|
||||
pkgver=3.0.0
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Free Google Translate API for Python"
|
||||
url="https://py-googletrans.readthedocs.io/en/latest/"
|
||||
arch="noarch !armhf !ppc64le" # missing py3-httpx
|
||||
@ -11,7 +11,7 @@ depends="
|
||||
py3-httpx
|
||||
python3
|
||||
"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="
|
||||
@ -19,15 +19,18 @@ source="
|
||||
client.patch
|
||||
"
|
||||
builddir="$srcdir/googletrans-$pkgver"
|
||||
options="!check" # no tests provided
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1a31c52e1fc72ab45131c95ff3649d1d679e3c082adc2b43ba1e5d9bbc57bf740c9e14575c6416e406e6e6e1796cac57330fbb1a639ad96841464e042ef70981 googletrans-3.0.0.tar.gz
|
||||
00eaccaa3da8ebc7d18cde5970683667871fe849b510ce7609ee2b7a3c84d4fa60e89a51104be3b90f6fcff79580e6c438a5411a94fa7e846fcab6061409a062 client.patch
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user