@@ -0,0 +1,43 @@
1+{ lib
2+, python3
3+, qt5
4+}:
5+
6+python3.pkgs.buildPythonApplication rec {
7+ pname = "patray";
8+ version = "0.1.1";
9+
10+ src = python3.pkgs.fetchPypi {
11+ inherit version pname;
12+ sha256 = "0vaapn2p4257m1d5nbnwnh252b7lhl00560gr9pqh2b7xqm1bh6g";
13+ };
14+
15+ patchPhase = ''
16+ sed -i '30i entry_points = { "console_scripts": [ "patray = patray.__main__:main" ] },' setup.py
17+ sed -i 's/production.txt/production.in/' setup.py
18+ sed -i '/pyside2/d' requirements/production.in
19+ '';
20+
21+ propagatedBuildInputs = with python3.pkgs; [
22+ pulsectl
23+ loguru
24+ cock
25+ pyside2
26+ ];
27+
28+ doCheck = false;
29+
30+ nativeBuildInputs = [ qt5.wrapQtAppsHook ];
31+ postFixup = ''
32+ wrapQtApp $out/bin/patray
33+ '';
34+
35+
36+
37+ meta = with lib; {
38+ description = "Yet another tray pulseaudio frontend";
39+ homepage = "https://github.com/pohmelie/patray";
40+ license = licenses.mit;
41+ maintainers = with maintainers; [ domenkozar ];
42+ };
43+}