nixpkgs/pkgs/by-name/za/zapzap/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.3 KiB
Nix
Raw Normal View History

2023-11-19 18:23:18 +00:00
{ lib
, fetchFromGitHub
, python3Packages
, qt6
}:
python3Packages.buildPythonApplication rec {
pname = "zapzap";
version = "5.3.8";
2023-11-19 18:23:18 +00:00
format = "setuptools";
src = fetchFromGitHub {
owner = "rafatosta";
2023-11-19 18:23:18 +00:00
repo = "zapzap";
2024-02-25 21:50:21 +00:00
rev = "refs/tags/${version}";
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/
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.";
homepage = "https://rtosta.com/zapzap-web/";
2023-11-19 18:23:18 +00:00
mainProgram = "zapzap";
license = licenses.gpl3Only;
changelog = "https://github.com/rafatosta/zapzap/releases/tag/${version}";
2023-11-19 18:23:18 +00:00
maintainers = [ maintainers.eymeric ];
};
}