Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
qt6,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "zapzap";
|
|
version = "6.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rafatosta";
|
|
repo = "zapzap";
|
|
tag = version;
|
|
hash = "sha256-DvQuhoO7jxnkX7uW+fltEjKu2Ugg8cgLKe+5pkln6g4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qt6.qtwayland
|
|
qt6.qtsvg
|
|
];
|
|
|
|
preBuild = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies = 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[@]}")
|
|
'';
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "zapzap" ];
|
|
|
|
meta = with lib; {
|
|
description = "WhatsApp desktop application written in Pyqt6 + PyQt6-WebEngine";
|
|
homepage = "https://rtosta.com/zapzap/";
|
|
mainProgram = "zapzap";
|
|
license = licenses.gpl3Only;
|
|
changelog = "https://github.com/rafatosta/zapzap/releases/tag/${src.tag}";
|
|
maintainers = [ maintainers.eymeric ];
|
|
};
|
|
}
|