python3-slugify: fix runtime error when text-unidecode is not found

master
John McQuah 4 months ago
parent 5879859dcd
commit a32db2004e

@ -1,14 +1,17 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/slugify
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python3.10/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/python_slugify-6.0.1-py3.10.egg-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.0.1-py3.10.egg-info/dependency_links.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.0.1-py3.10.egg-info/not-zip-safe
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.0.1-py3.10.egg-info/PKG-INFO
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.0.1-py3.10.egg-info/requires.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.0.1-py3.10.egg-info/SOURCES.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.0.1-py3.10.egg-info/top_level.txt
drwxr-xr-x root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/dependency_links.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/entry_points.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/not-zip-safe
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/PKG-INFO
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/requires.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/SOURCES.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/python_slugify-6.1.2-py3.10.egg-info/top_level.txt
drwxr-xr-x root/root usr/lib/python3.10/site-packages/slugify/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/slugify/__init__.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/slugify/__main__.py

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/jmq.pub
RWTTPlFarK9CxBqyhwq9VjlhKAAfvd6SoiFRe4PwdqaV+SwpAskRfNtUroxSXuyhtWbv0IFYrOl9nvININr/+Rd633paz5CyHAA=
SHA256 (Pkgfile) = 5e769633c77287c5fe2a346a238a97843e0ec3355be6044d10a6f9466c5efb1b
SHA256 (.footprint) = 22d1c737f09e48776c7b2bce85988f3da338610b620be8587773e75427c92e5d
SHA256 (python3-slugify-6.0.1.tar.gz) = 1d964ed19cfb085e79eba181834dbe7b30db9cbf9fce17dfd478cfc7c7b3a928
RWTTPlFarK9CxPmCkCLO50IZZiPuuD/jb/43WAerC/aV/kYDrWstktlQlZDqmT0KSQQtlxPXpMBvhRREh5iJPApcJTO7Rf/RYgg=
SHA256 (Pkgfile) = 22e33be07480f1ea2af95bb086774411a034b4600240e06dae58d0bb469bf541
SHA256 (.footprint) = 52ff07fdc4d9e79684dd68f861fc4895be99c56f3e893de95cd18ec6cbd24846
SHA256 (python3-slugify-6.1.2.tar.gz) = 3c093529760e45ced4f72a4a42d2028701b070e7a0a7acc79564ffeaf753fc4f

@ -4,14 +4,17 @@
# Depends on: python3-unidecode
name=python3-slugify
version=6.0.1
version=6.1.2
release=1
source=(https://github.com/un33k/python-slugify/archive/refs/tags/v$version.tar.gz)
renames=($name-$version.tar.gz)
build() {
cd python-${name##python3-}-$version
/usr/bin/python3 setup.py build
# Remove the superfluous dependency on text-unidecode
sed -i '/text-unidecode/d' python_slugify.egg-info/requires.txt
/usr/bin/python3 setup.py install --skip-build \
--optimize=1 --prefix=/usr --root=$PKG

Loading…
Cancel
Save