opensnitch-ui: migrate to python-slugify to fix build (#434698)

This commit is contained in:
Vladimír Čunát
2025-08-20 10:31:49 +02:00
2 changed files with 19 additions and 1 deletions
+8 -1
View File
@@ -12,6 +12,13 @@ python3Packages.buildPythonApplication {
inherit (opensnitch) src version;
sourceRoot = "${opensnitch.src.name}/ui";
patches = [
# https://github.com/evilsocket/opensnitch/pull/1413
# unicode-slugify has failing tests and is overall unmaintained and broken.
# python-slugify is a preferrable replacement
./use_python_slugify.patch
];
postPatch = ''
substituteInPlace opensnitch/utils/__init__.py \
--replace-fail /usr/lib/python3/dist-packages/data ${python3Packages.pyasn}/${python3Packages.python.sitePackages}/pyasn/data
@@ -38,7 +45,7 @@ python3Packages.buildPythonApplication {
pyinotify
pyqt5
qt-material
unicode-slugify
python-slugify
unidecode
];
@@ -0,0 +1,11 @@
diff --git a/requirements.txt b/requirements.txt
index 66e0de13..68d651b1 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
grpcio-tools>=1.10.1
pyinotify==0.9.6
-unicode_slugify==0.1.5
+python-slugify>=7.0.0
pyqt5>=5.6
protobuf