File tree Expand file tree Collapse file tree 2 files changed +17
-28
lines changed
tools/security/nitrokey-app2 Expand file tree Collapse file tree 2 files changed +17
-28
lines changed Original file line number Diff line number Diff line change 11{ lib
2- , python3
2+ , buildPythonApplication
33, fetchFromGitHub
4- , wrapQtAppsHook
4+ , pythonOlder
5+ , pyside6
6+ , poetry-core
7+ , pynitrokey
8+ , pyudev
9+ , qt-material
510} :
611
7- python3 . pkgs . buildPythonApplication rec {
12+ buildPythonApplication rec {
813 pname = "nitrokey-app2" ;
9- version = "2.1.4 " ;
14+ version = "2.1.5 " ;
1015 pyproject = true ;
1116
12- disabled = python3 . pythonOlder "3.9" ;
17+ disabled = pythonOlder "3.9" ;
1318
1419 src = fetchFromGitHub {
1520 owner = "Nitrokey" ;
1621 repo = "nitrokey-app2" ;
1722 rev = "v${ version } " ;
18- hash = "sha256-loOCa6XlLx1YEfqR0SUUalVIEPCoYsNEHFo2MIKexeA =" ;
23+ hash = "sha256-mR13zUgCdNS09EnpGLrnOnoIn3p6ZM/0fHKg0OUMWj4 =" ;
1924 } ;
2025
2126 # https://github.com/Nitrokey/nitrokey-app2/issues/152
2227 #
2328 # pythonRelaxDepsHook does not work here, because it runs in postBuild and
2429 # only modifies the dependencies in the built distribution.
2530 postPatch = ''
26- substituteInPlace pyproject.toml --replace " pynitrokey ==" " pynitrokey >="
31+ substituteInPlace pyproject.toml --replace ' pynitrokey = "' ' pynitrokey = ">='
2732 '' ;
2833
29- # The pyproject.toml file seems to be incomplete and does not generate
30- # resources (i.e. run pyrcc5 and pyuic5) but the Makefile does.
31- preBuild = ''
32- make build-ui
33- '' ;
34-
35- nativeBuildInputs = with python3 . pkgs ; [
36- flit-core
37- pyqt5
38- wrapQtAppsHook
34+ nativeBuildInputs = [
35+ poetry-core
3936 ] ;
4037
41- dontWrapQtApps = true ;
42-
43- propagatedBuildInputs = with python3 . pkgs ; [
38+ propagatedBuildInputs = [
4439 pynitrokey
4540 pyudev
46- pyqt5
47- pyqt5-stubs
41+ pyside6
4842 qt-material
4943 ] ;
5044
51- preFixup = ''
52- wrapQtApp "$out/bin/nitrokeyapp" \
53- --set-default CRYPTOGRAPHY_OPENSSL_NO_LEGACY 1
54- '' ;
55-
5645 pythonImportsCheck = [
5746 "nitrokeyapp"
5847 ] ;
Original file line number Diff line number Diff line change @@ -41613,7 +41613,7 @@ with pkgs;
4161341613
4161441614 nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };
4161541615
41616- nitrokey-app2 = libsForQt5 .callPackage ../tools/security/nitrokey-app2 { };
41616+ nitrokey-app2 = python3Packages .callPackage ../tools/security/nitrokey-app2 { };
4161741617
4161841618 fpm2 = callPackage ../tools/security/fpm2 { };
4161941619
You can’t perform that action at this time.
0 commit comments