depot/third_party/nixpkgs/pkgs/applications/misc/remarkable/rmview/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

33 lines
939 B
Nix

{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
python3Packages.buildPythonApplication rec {
pname = "rmview";
version = "3.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "bordaigorl";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-V26zmu8cQkLs0IMR7eFO8x34McnT3xYyzlZfntApYkk=";
};
nativeBuildInputs = with python3Packages; [ pyqt5 setuptools 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 ];
};
}