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