biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / nitrokey-app2 / default.nix
blobdeb74d7c8ce26a4ca966dde971caac82627c4c51
1 { lib
2 , stdenv
3 , python3
4 , fetchFromGitHub
5 , wrapQtAppsHook
6 , qtbase
7 , qtwayland
8 }:
10 python3.pkgs.buildPythonApplication rec {
11   pname = "nitrokey-app2";
12   version = "2.3.2";
13   pyproject = true;
15   disabled = python3.pythonOlder "3.9";
17   src = fetchFromGitHub {
18     owner = "Nitrokey";
19     repo = "nitrokey-app2";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-ekVf9ZuLqx7SuiD21iV5c60r7E8kk4jKoYM/T02ETrI=";
22   };
24   nativeBuildInputs = with python3.pkgs; [
25     poetry-core
26     wrapQtAppsHook
27   ];
29   buildInputs = [ qtbase ] ++ lib.optionals stdenv.hostPlatform.isLinux [
30     qtwayland
31   ];
33   propagatedBuildInputs = with python3.pkgs; [
34     nitrokey
35     pyside6
36     qt-material
37     usb-monitor
38   ];
40   pythonRelaxDeps = [ "pynitrokey" ];
42   pythonImportsCheck = [
43     "nitrokeyapp"
44   ];
46   meta = with lib; {
47     description = "This application allows to manage Nitrokey 3 devices";
48     homepage = "https://github.com/Nitrokey/nitrokey-app2";
49     changelog = "https://github.com/Nitrokey/nitrokey-app2/releases/tag/v${version}";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ _999eagle panicgh ];
52     mainProgram = "nitrokeyapp";
53   };