Package Details: python-audible 0.8.2-1

Git Clone URL: https://aur.archlinux.org/python-audible.git (read-only, click to copy)
Package Base: python-audible
Description: A(Sync) Interface for internal Audible API written in
Upstream URL: https://github.com/mkb79/audible
Licenses: AGPL3
Conflicts: python-audible
Provides: python-audible
Submitter: mattski
Maintainer: mattski
Last Packager: mattski
Votes: 0
Popularity: 0.000000
First Submitted: 2022-10-25 07:14 (UTC)
Last Updated: 2022-10-25 07:14 (UTC)

Latest Comments

dreieck commented on 2024-03-26 12:57 (UTC)

Build with setup.py does no longer work.

Please, add to makedepends 'python-build' 'python-installer' 'python-wheel', and then use in build():

python -m build --wheel --no-isolation

and in package():

python -m installer --destdir="${pkgdir}" dist/*.whl

instead of the calls to setup.py.

Regards and thanks for maintaining!

dreieck commented on 2023-04-26 10:44 (UTC)

To make this work with newer versions of python-httpx, the upper version restriction needs to be removed.

A patch that does it: remove-httpx-upper-version-restriction.patch:

diff -U0 -r audible-0.8.2.orig/setup.py audible-0.8.2/setup.py
--- audible-0.8.2.orig/setup.py 2022-05-25 14:53:08.000000000 +0200
+++ audible-0.8.2/setup.py  2023-04-26 12:40:35.189725945 +0200
@@ -49 +49 @@
-        'httpx>=0.20.0,<0.24.0',
+        'httpx>=0.20.0',
diff -U0 -r audible-0.8.2.orig/src/audible.egg-info/requires.txt audible-0.8.2/src/audible.egg-info/requires.txt
--- audible-0.8.2.orig/src/audible.egg-info/requires.txt    2022-05-25 14:53:14.000000000 +0200
+++ audible-0.8.2/src/audible.egg-info/requires.txt 2023-04-26 12:40:28.059726168 +0200
@@ -2 +2 @@
-httpx<0.24.0,>=0.20.0
+httpx>=0.20.0

And the following to be added to the PKGBUILD:

source+=('remove-httpx-upper-version-restriction.patch')
sha256sums+=('db50d8344a788773fafc5c29af659deb04ec2978dd6ae2f76aae57f8807d917c')

prepare() {
  cd $srcdir/${_name}-$pkgver
  patch -N -p1 --follow-symlinks -i "${srcdir}/remove-httpx-upper-version-restriction.patch"
}

Regards!

dreieck commented on 2023-04-26 10:18 (UTC)

Please remove python-audible from the provides and conflicts arrays. $pkgname should neither be in provides nor in conflicts entry.

Thanks for maintaining!