depot/third_party/nixpkgs/pkgs/applications/misc/remarkable/rmview/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

32 lines
908 B
Nix

{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
python3Packages.buildPythonApplication rec {
pname = "rmview";
version = "3.1.3";
src = fetchFromGitHub {
owner = "bordaigorl";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-V26zmu8cQkLs0IMR7eFO8x34McnT3xYyzlZfntApYkk=";
};
nativeBuildInputs = with python3Packages; [ pyqt5 wrapQtAppsHook ];
propagatedBuildInputs = with python3Packages; [ pyqt5 paramiko twisted pyjwt pyopenssl service-identity sshtunnel ];
preBuild = ''
pyrcc5 -o src/rmview/resources.py resources.qrc
'';
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with lib; {
description = "Fast live viewer for reMarkable 1 and 2";
mainProgram = "rmview";
homepage = "https://github.com/bordaigorl/rmview";
license = licenses.gpl3Only;
maintainers = [ maintainers.nickhu ];
};
}