opensnitch-ui: migrate to python-slugify to fix build

Grimmauld 1f685465 6b1c5252

+19 -1
+8 -1
pkgs/by-name/op/opensnitch-ui/package.nix
··· 12 12 inherit (opensnitch) src version; 13 13 sourceRoot = "${opensnitch.src.name}/ui"; 14 14 15 + patches = [ 16 + # https://github.com/evilsocket/opensnitch/pull/1413 17 + # unicode-slugify has failing tests and is overall unmaintained and broken. 18 + # python-slugify is a preferrable replacement 19 + ./use_python_slugify.patch 20 + ]; 21 + 15 22 postPatch = '' 16 23 substituteInPlace opensnitch/utils/__init__.py \ 17 24 --replace-fail /usr/lib/python3/dist-packages/data ${python3Packages.pyasn}/${python3Packages.python.sitePackages}/pyasn/data ··· 38 45 pyinotify 39 46 pyqt5 40 47 qt-material 41 - unicode-slugify 48 + python-slugify 42 49 unidecode 43 50 ]; 44 51
+11
pkgs/by-name/op/opensnitch-ui/use_python_slugify.patch
··· 1 + diff --git a/requirements.txt b/requirements.txt 2 + index 66e0de13..68d651b1 100644 3 + --- a/requirements.txt 4 + +++ b/requirements.txt 5 + @@ -1,5 +1,5 @@ 6 + grpcio-tools>=1.10.1 7 + pyinotify==0.9.6 8 + -unicode_slugify==0.1.5 9 + +python-slugify>=7.0.0 10 + pyqt5>=5.6 11 + protobuf