2023-11-19 18:23:18 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
, qt6
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "zapzap";
|
2024-11-14 01:36:23 +00:00
|
|
|
version = "5.3.8";
|
2023-11-19 18:23:18 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-11-14 01:36:23 +00:00
|
|
|
owner = "rafatosta";
|
2023-11-19 18:23:18 +00:00
|
|
|
repo = "zapzap";
|
2024-02-25 21:50:21 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-11-14 01:36:23 +00:00
|
|
|
hash = "sha256-UIr6EYE2Y/05a3kO6waAnf6+5gb3r5UzgKaHwDbbfZw=";
|
2023-11-19 18:23:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
setuptools
|
|
|
|
qt6.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qt6.qtwayland
|
|
|
|
qt6.qtsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
dbus-python
|
|
|
|
pyqt6
|
|
|
|
pyqt6-webengine
|
|
|
|
pyqt6-sip
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm555 share/applications/com.rtosta.zapzap.desktop -t $out/share/applications/
|
2023-12-17 20:31:00 +00:00
|
|
|
install -Dm555 share/icons/com.rtosta.zapzap.svg -t $out/share/icons/hicolor/scalable/apps/
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2023-11-19 18:23:18 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-11-16 20:24:48 +00:00
|
|
|
description = "WhatsApp desktop application written in Pyqt6 + PyQt6-WebEngine.";
|
2024-11-14 01:36:23 +00:00
|
|
|
homepage = "https://rtosta.com/zapzap-web/";
|
2023-11-19 18:23:18 +00:00
|
|
|
mainProgram = "zapzap";
|
|
|
|
license = licenses.gpl3Only;
|
2024-11-14 01:36:23 +00:00
|
|
|
changelog = "https://github.com/rafatosta/zapzap/releases/tag/${version}";
|
2023-11-19 18:23:18 +00:00
|
|
|
maintainers = [ maintainers.eymeric ];
|
|
|
|
};
|
|
|
|
}
|