Unverified Commit 35b95709 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

nitrokey-app2: 2.3.5 -> 2.4.1, fix SVG display (#439296)

parents 8e21ca43 4a135469
Loading
Loading
Loading
Loading
+32 −13
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  python3,
  buildPythonApplication,
  fetchFromGitHub,
  wrapQtAppsHook,
  qtbase,
  qtwayland,
  qtsvg,
  poetry-core,
  fido2,
  nitrokey,
  pyside6,
  usb-monitor,
  qt6,
}:

python3.pkgs.buildPythonApplication rec {
let
  inherit (qt6)
    wrapQtAppsHook
    qtbase
    qtwayland
    qtsvg
    ;
in

buildPythonApplication rec {
  pname = "nitrokey-app2";
  version = "2.3.5";
  version = "2.4.1";
  pyproject = true;

  disabled = python3.pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "Nitrokey";
    repo = "nitrokey-app2";
    tag = "v${version}";
    hash = "sha256-zhTDr4GyE4jridK3ee8ae3v5behMbuo86q9WdrBVqQg=";
    hash = "sha256-nzhhtnKKOHA+Cw1y+BpYsyQklzkDnmFRKGIfaJ/dmaQ=";
  };

  nativeBuildInputs = with python3.pkgs; [
    poetry-core
  nativeBuildInputs = [
    wrapQtAppsHook
  ];

@@ -36,7 +44,12 @@ python3.pkgs.buildPythonApplication rec {
    qtsvg
  ];

  propagatedBuildInputs = with python3.pkgs; [
  build-system = [
    poetry-core
  ];

  dependencies = [
    fido2
    nitrokey
    pyside6
    usb-monitor
@@ -53,6 +66,12 @@ python3.pkgs.buildPythonApplication rec {
    install -Dm755 meta/nk-app2.png $out/share/icons/hicolor/128x128/apps/com.nitrokey.nitrokey-app2.png
  '';

  # wrapQtApps only wrapps binary files and normally skips python programs.
  # Manually pass the qtWrapperArgs from wrapQtAppsHook to wrap python programs.
  preFixup = ''
    makeWrapperArgs+=("''${qtWrapperArgs[@]}")
  '';

  meta = with lib; {
    description = "This application allows to manage Nitrokey 3 devices";
    homepage = "https://github.com/Nitrokey/nitrokey-app2";
+1 −1
Original line number Diff line number Diff line
@@ -15397,7 +15397,7 @@ with pkgs;

  nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };

  nitrokey-app2 = qt6Packages.callPackage ../tools/security/nitrokey-app2 { };
  nitrokey-app2 = python3Packages.callPackage ../tools/security/nitrokey-app2 { };

  hy = with python3Packages; toPythonApplication hy;