blob: cc2fb8296c141a2c250d80d6f9cc5f96c385012f (
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
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
# Contributor: robertfoster
_pkgname=gpsoauth
pkgname=python-$_pkgname
pkgver=1.1.1 # renovate: datasource=github-tags depName=simon-weber/gpsoauth
pkgrel=1
pkgdesc="A python client library for Google Play Services OAuth."
url="https://github.com/simon-weber/gpsoauth"
depends=('python' 'python-requests' 'python-pycryptodomex')
makedepends=('python-build' 'python-installer' 'python-poetry')
checkdepends=('python-pytest')
license=('MIT')
arch=('any')
source=("${_pkgname}-$pkgver.tar.gz::https://github.com/simon-weber/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('db7c1919a0cd775a32ca7948af13f24fb355b6033d814905083a9672d3c59647')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${_pkgname}-${pkgver}"
# importlib.metadata.PackageNotFoundError: No package metadata was found for gpsoauth
#pytest
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|