Package Details: python-gpsoauth 1.0.4-1

Git Clone URL: https://aur.archlinux.org/python-gpsoauth.git (read-only, click to copy)
Package Base: python-gpsoauth
Description: A python client library for Google Play Services OAuth.
Upstream URL: https://github.com/simon-weber/gpsoauth
Licenses: MIT
Submitter: delusional
Maintainer: xiretza
Last Packager: xiretza
Votes: 2
Popularity: 0.000000
First Submitted: 2018-01-30 17:05 (UTC)
Last Updated: 2024-03-03 14:36 (UTC)

Latest Comments

xiretza commented on 2022-02-22 18:24 (UTC)

Hi, here are a few patches to 1) make the build work in clean chroots 2) give the source file a unique name 3) install the license file:

From f4b966525080e6454ea317c0dc81df2398d89c14 Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Tue, 22 Feb 2022 19:11:19 +0100
Subject: [PATCH 1/3] Follow python package guidelines

---
 PKGBUILD | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 6989d42..66add53 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,25 +6,19 @@ 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-poetry')
+makedepends=('python-build' 'python-installer' 'python-poetry')
 license=('MIT')
 arch=('any')
 source=("https://github.com/simon-weber/${pkgname##python-}/archive/${pkgver}.tar.gz")

 build() {
   cd "${srcdir}/${pkgname##python-}-${pkgver}"
-  poetry build --format wheel
+  python -m build --wheel --no-isolation
 }

 package() {
   cd "${srcdir}/${pkgname##python-}-${pkgver}"
-  PIP_CONFIG_FILE=/dev/null pip install \
-    --isolated \
-    --root="${pkgdir}" \
-    --ignore-installed \
-    --no-deps dist/*.whl
-
-    find "${pkgdir}" -iname "*.pyc" -exec rm {} \;
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }

 sha256sums=('9f8bf74e17c4c42e2c636b6ffdeb20069ed4e468eccb3411c1d680bfdd498b8f')
-- 
2.35.1

From d737ba75836b48a0362d0416f8b44abed82b6fbf Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Tue, 22 Feb 2022 19:11:56 +0100
Subject: [PATCH 2/3] Use unique name for source file

---
 PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index 66add53..2c8f4e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ depends=('python' 'python-requests' 'python-pycryptodomex')
 makedepends=('python-build' 'python-installer' 'python-poetry')
 license=('MIT')
 arch=('any')
-source=("https://github.com/simon-weber/${pkgname##python-}/archive/${pkgver}.tar.gz")
+source=("${pkgname##python-}-$pkgver.tar.gz::https://github.com/simon-weber/${pkgname##python-}/archive/${pkgver}.tar.gz")

 build() {
   cd "${srcdir}/${pkgname##python-}-${pkgver}"
-- 
2.35.1

From 49bfdc9500f18cf3dbe80bffd0751f7fb4c70d44 Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Tue, 22 Feb 2022 19:14:57 +0100
Subject: [PATCH 3/3] Install license

---
 PKGBUILD | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PKGBUILD b/PKGBUILD
index 2c8f4e2..cae3fa9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,6 +19,8 @@ build() {
 package() {
   cd "${srcdir}/${pkgname##python-}-${pkgver}"
   python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

 sha256sums=('9f8bf74e17c4c42e2c636b6ffdeb20069ed4e468eccb3411c1d680bfdd498b8f')
-- 
2.35.1

eggz commented on 2019-10-29 07:51 (UTC)

Please remove the brackets in your PKGBUILD

pkgbase=('python-gpsoauth') pkgname=('python-gpsoauth')

has to be

pkgbase='python-gpsoauth' pkgname='python-gpsoauth'

An array makes no sense here.