2021-05-29 03:34:57 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2021-05-29 03:34:57 +00:00
|
|
|
, qt5
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "patray";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.1.2";
|
2021-05-29 03:34:57 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2021-05-29 03:34:57 +00:00
|
|
|
inherit version pname;
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-O8CBUexL2V1qI7bB/Lns3yjUvFOpC6spd/6asXa5+pw=";
|
2021-05-29 03:34:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i '30i entry_points = { "console_scripts": [ "patray = patray.__main__:main" ] },' setup.py
|
|
|
|
sed -i 's/production.txt/production.in/' setup.py
|
|
|
|
sed -i '/pyside2/d' requirements/production.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pulsectl
|
|
|
|
loguru
|
|
|
|
cock
|
|
|
|
pyside2
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
|
|
|
postFixup = ''
|
2023-05-24 13:37:59 +00:00
|
|
|
wrapQtApp $out/bin/patray --prefix QT_PLUGIN_PATH : ${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}
|
2021-05-29 03:34:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Yet another tray pulseaudio frontend";
|
|
|
|
homepage = "https://github.com/pohmelie/patray";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "patray";
|
2021-05-29 03:34:57 +00:00
|
|
|
};
|
|
|
|
}
|