2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
2024-06-05 15:53:02 +00:00
|
|
|
, stdenv
|
2024-04-21 15:54:59 +00:00
|
|
|
, python3
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchFromGitHub
|
2024-06-05 15:53:02 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, qtbase
|
|
|
|
, qtwayland
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "nitrokey-app2";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.3.0";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = python3.pythonOlder "3.9";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Nitrokey";
|
|
|
|
repo = "nitrokey-app2";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-BSq3ezNt6btQUO1hMVw9bN3VCyUOUhfRFJcHDGkIm6Q=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2024-01-25 14:12:00 +00:00
|
|
|
poetry-core
|
2024-06-05 15:53:02 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase ] ++ lib.optionals stdenv.isLinux [
|
|
|
|
qtwayland
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2023-10-09 19:29:22 +00:00
|
|
|
pynitrokey
|
|
|
|
pyudev
|
2024-01-25 14:12:00 +00:00
|
|
|
pyside6
|
2023-10-09 19:29:22 +00:00
|
|
|
qt-material
|
|
|
|
];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nitrokeyapp"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "This application allows to manage Nitrokey 3 devices";
|
|
|
|
homepage = "https://github.com/Nitrokey/nitrokey-app2";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/Nitrokey/nitrokey-app2/releases/tag/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.asl20;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ _999eagle panicgh ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "nitrokeyapp";
|
|
|
|
};
|
|
|
|
}
|