Merge pull request #304110 from 999eagle/update/nitrokey-app2

pynitrokey: unpin cryptography, nitrokey-app2: 2.1.5 -> 2.2.2, fix qt somewhat

authored by Aleksana and committed by GitHub ac1861c8 51d92d05

+17 -44
+2 -27
pkgs/by-name/py/pynitrokey/package.nix
··· 1 - { python3 2 - , fetchPypi 3 - , rustPlatform 4 - }: 1 + { python3 }: 5 2 6 - let 7 - python = python3.override { 8 - packageOverrides = self: super: { 9 - # https://github.com/nxp-mcuxpresso/spsdk/issues/64 10 - cryptography = super.cryptography.overridePythonAttrs (old: rec { 11 - version = "41.0.7"; 12 - src = fetchPypi { 13 - inherit (old) pname; 14 - inherit version; 15 - hash = "sha256-E/k86b6oAWwlOzSvxr1qdZk+XEBnLtVAWpyDLw1KALw="; 16 - }; 17 - cargoDeps = rustPlatform.fetchCargoTarball { 18 - inherit src; 19 - sourceRoot = "${old.pname}-${version}/${old.cargoRoot}"; 20 - name = "${old.pname}-${version}"; 21 - hash = "sha256-VeZhKisCPDRvmSjGNwCgJJeVj65BZ0Ge+yvXbZw86Rw="; 22 - }; 23 - patches = [ ]; 24 - doCheck = false; # would require overriding cryptography-vectors 25 - }); 26 - }; 27 - }; 28 - in with python.pkgs; toPythonApplication pynitrokey 3 + with python3.pkgs; toPythonApplication pynitrokey
-1
pkgs/development/python-modules/spsdk/default.nix
··· 107 107 passthru.tests.version = testers.testVersion { package = spsdk; }; 108 108 109 109 meta = with lib; { 110 - broken = versionAtLeast cryptography.version "41.1"; 111 110 changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/${src.rev}/docs/release_notes.rst"; 112 111 description = "NXP Secure Provisioning SDK"; 113 112 homepage = "https://github.com/nxp-mcuxpresso/spsdk";
+14 -15
pkgs/tools/security/nitrokey-app2/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , python3 3 4 , fetchPypi 4 - , rustPlatform 5 5 , fetchFromGitHub 6 + , wrapQtAppsHook 7 + , qtbase 8 + , qtwayland 6 9 }: 7 10 8 11 let 9 12 python = python3.override { 10 13 packageOverrides = self: super: { 11 - # https://github.com/nxp-mcuxpresso/spsdk/issues/64 12 - cryptography = super.cryptography.overridePythonAttrs (old: rec { 13 - version = "41.0.7"; 14 + pynitrokey = super.pynitrokey.overridePythonAttrs (old: rec { 15 + version = "0.4.45"; 14 16 src = fetchPypi { 15 17 inherit (old) pname; 16 18 inherit version; 17 - hash = "sha256-E/k86b6oAWwlOzSvxr1qdZk+XEBnLtVAWpyDLw1KALw="; 19 + hash = "sha256-iY4ThrmXP7pEjTYYU4lePVAbuJGTdHX3iKswXzuf7W8="; 18 20 }; 19 - cargoDeps = rustPlatform.fetchCargoTarball { 20 - inherit src; 21 - sourceRoot = "${old.pname}-${version}/${old.cargoRoot}"; 22 - name = "${old.pname}-${version}"; 23 - hash = "sha256-VeZhKisCPDRvmSjGNwCgJJeVj65BZ0Ge+yvXbZw86Rw="; 24 - }; 25 - patches = [ ]; 26 - doCheck = false; # would require overriding cryptography-vectors 27 21 }); 28 22 }; 29 23 }; 30 24 in python.pkgs.buildPythonApplication rec { 31 25 pname = "nitrokey-app2"; 32 - version = "2.1.5"; 26 + version = "2.2.2"; 33 27 pyproject = true; 34 28 35 29 disabled = python.pythonOlder "3.9"; ··· 38 32 owner = "Nitrokey"; 39 33 repo = "nitrokey-app2"; 40 34 rev = "v${version}"; 41 - hash = "sha256-mR13zUgCdNS09EnpGLrnOnoIn3p6ZM/0fHKg0OUMWj4="; 35 + hash = "sha256-MiyfmsrKZRoe7YMEjR1LHPesfJh6+dcSydoEAgrALJ8="; 42 36 }; 43 37 44 38 # https://github.com/Nitrokey/nitrokey-app2/issues/152 ··· 51 45 52 46 nativeBuildInputs = with python.pkgs; [ 53 47 poetry-core 48 + wrapQtAppsHook 49 + ]; 50 + 51 + buildInputs = [ qtbase ] ++ lib.optionals stdenv.isLinux [ 52 + qtwayland 54 53 ]; 55 54 56 55 propagatedBuildInputs = with python.pkgs; [
+1 -1
pkgs/top-level/all-packages.nix
··· 40644 40644 40645 40645 nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { }; 40646 40646 40647 - nitrokey-app2 = callPackage ../tools/security/nitrokey-app2 { }; 40647 + nitrokey-app2 = qt6Packages.callPackage ../tools/security/nitrokey-app2 { }; 40648 40648 40649 40649 fpm2 = callPackage ../tools/security/fpm2 { }; 40650 40650