tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
opensnitch-ui: migrate to python-slugify to fix build
Grimmauld
5 months ago
1f685465
6b1c5252
+19
-1
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
op
opensnitch-ui
package.nix
use_python_slugify.patch
+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
15
+
patches = [
16
16
+
# https://github.com/evilsocket/opensnitch/pull/1413
17
17
+
# unicode-slugify has failing tests and is overall unmaintained and broken.
18
18
+
# python-slugify is a preferrable replacement
19
19
+
./use_python_slugify.patch
20
20
+
];
21
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
41
-
unicode-slugify
48
48
+
python-slugify
42
49
unidecode
43
50
];
44
51
+11
pkgs/by-name/op/opensnitch-ui/use_python_slugify.patch
···
1
1
+
diff --git a/requirements.txt b/requirements.txt
2
2
+
index 66e0de13..68d651b1 100644
3
3
+
--- a/requirements.txt
4
4
+
+++ b/requirements.txt
5
5
+
@@ -1,5 +1,5 @@
6
6
+
grpcio-tools>=1.10.1
7
7
+
pyinotify==0.9.6
8
8
+
-unicode_slugify==0.1.5
9
9
+
+python-slugify>=7.0.0
10
10
+
pyqt5>=5.6
11
11
+
protobuf