tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
streamdeck-ui: 2.0.6 -> 3.0.1
Majiir Paktu
2 years ago
0fb2fbc3
a02a5025
+23
-23
3 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
streamdeck-ui
default.nix
update-pillow.patch
top-level
all-packages.nix
+9
-22
pkgs/applications/misc/streamdeck-ui/default.nix
···
1
{ lib
2
, python3Packages
3
, fetchFromGitHub
4
-
, fetchpatch
5
, copyDesktopItems
6
-
, wrapQtAppsHook
7
, writeText
8
, makeDesktopItem
9
, xvfb-run
10
-
, qt5
11
}:
12
13
python3Packages.buildPythonApplication rec {
14
pname = "streamdeck-ui";
15
-
version = "2.0.6";
16
17
src = fetchFromGitHub {
18
repo = "streamdeck-linux-gui";
19
owner = "streamdeck-linux-gui";
20
rev = "v${version}";
21
-
sha256 = "sha256-5dk+5oefg5R68kv038gsZ2p5ixmpj/vBLBp/V7Sdos8=";
22
};
23
24
patches = [
25
-
(fetchpatch {
26
-
name = "use-poetry-core.patch";
27
-
url = "https://github.com/timothycrosley/streamdeck-ui/commit/e271656c1f47b1619d1b942e2ebb01ab2d6a68a9.patch";
28
-
hash = "sha256-wqYwX6eSqMnW6OG7wSprD62Dz818ayFduVrqW9E/ays=";
29
-
})
30
-
(fetchpatch {
31
-
name = "update-python-xlib-0.33.patch";
32
-
url = "https://github.com/timothycrosley/streamdeck-ui/commit/07d7fdd33085b413dd26b02d8a02820edad2d568.patch";
33
-
hash = "sha256-PylTrbfB8RJ0+kbgJlRdcvfdahGoob8LabwhuFNsUpY=";
34
-
})
35
];
36
37
desktopItems = [ (makeDesktopItem {
···
70
nativeBuildInputs = [
71
python3Packages.poetry-core
72
copyDesktopItems
73
-
wrapQtAppsHook
74
];
75
76
propagatedBuildInputs = with python3Packages; [
···
79
cairosvg
80
pillow
81
pynput
82
-
pyside2
83
streamdeck
84
xlib
85
] ++ lib.optionals stdenv.isLinux [
86
-
qt5.qtwayland
87
];
88
89
nativeCheckInputs = [
···
93
];
94
95
# Ignored tests are not in a running or passing state.
96
-
# Fixes have been merged upstream but not yet released.
97
# Revisit these ignored tests on each update.
98
checkPhase = ''
99
xvfb-run pytest tests \
100
-
--ignore=tests/test_api.py \
101
-
--ignore=tests/test_filter.py \
102
-
--ignore=tests/test_stream_deck_monitor.py
103
'';
104
105
meta = with lib; {
···
1
{ lib
2
, python3Packages
3
, fetchFromGitHub
0
4
, copyDesktopItems
0
5
, writeText
6
, makeDesktopItem
7
, xvfb-run
8
+
, qt6
9
}:
10
11
python3Packages.buildPythonApplication rec {
12
pname = "streamdeck-ui";
13
+
version = "3.0.1";
14
15
src = fetchFromGitHub {
16
repo = "streamdeck-linux-gui";
17
owner = "streamdeck-linux-gui";
18
rev = "v${version}";
19
+
sha256 = "sha256-nLtWExxufxT5nRiEYLGNeMhFhvlGzYKA+crA74Yt4ck=";
20
};
21
22
patches = [
23
+
# nixpkgs has a newer pillow version
24
+
./update-pillow.patch
0
0
0
0
0
0
0
0
25
];
26
27
desktopItems = [ (makeDesktopItem {
···
60
nativeBuildInputs = [
61
python3Packages.poetry-core
62
copyDesktopItems
63
+
qt6.wrapQtAppsHook
64
];
65
66
propagatedBuildInputs = with python3Packages; [
···
69
cairosvg
70
pillow
71
pynput
72
+
pyside6
73
streamdeck
74
xlib
75
] ++ lib.optionals stdenv.isLinux [
76
+
qt6.qtwayland
77
];
78
79
nativeCheckInputs = [
···
83
];
84
85
# Ignored tests are not in a running or passing state.
0
86
# Revisit these ignored tests on each update.
87
checkPhase = ''
88
xvfb-run pytest tests \
89
+
--ignore=tests/test_api.py
0
0
90
'';
91
92
meta = with lib; {
+13
pkgs/applications/misc/streamdeck-ui/update-pillow.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/pyproject.toml b/pyproject.toml
2
+
index 0aff29e..4371616 100644
3
+
--- a/pyproject.toml
4
+
+++ b/pyproject.toml
5
+
@@ -14,7 +14,7 @@ packages = [
6
+
[tool.poetry.dependencies]
7
+
python = ">=3.8,<3.12"
8
+
streamdeck = "^0.9.3"
9
+
-pillow = "^9.4.0"
10
+
+pillow = "^10.0.0"
11
+
pynput = "^1.7.6"
12
+
pyside6 = "^6.4.2"
13
+
CairoSVG = "^2.5.2"
+1
-1
pkgs/top-level/all-packages.nix
···
32835
32836
srain = callPackage ../applications/networking/irc/srain { };
32837
32838
-
streamdeck-ui = libsForQt5.callPackage ../applications/misc/streamdeck-ui { };
32839
32840
super-productivity = callPackage ../applications/office/super-productivity { };
32841
···
32835
32836
srain = callPackage ../applications/networking/irc/srain { };
32837
32838
+
streamdeck-ui = callPackage ../applications/misc/streamdeck-ui { };
32839
32840
super-productivity = callPackage ../applications/office/super-productivity { };
32841