From 0fc34fd699b9e5e3348213e2cb24928106657794 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 5 Jun 2026 20:45:28 +0000 Subject: [PATCH] python3Packages.spsdk: 3.6.0 -> 3.9.0 Diff: https://github.com/nxp-mcuxpresso/spsdk/compare/v3.6.0...v3.9.0 Changelog: https://github.com/nxp-mcuxpresso/spsdk/blob/v3.9.0/docs/release_notes.rst --- .../python-modules/spsdk/default.nix | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/spsdk/default.nix b/pkgs/development/python-modules/spsdk/default.nix index 7756631eaee8..ac6ad10303c7 100644 --- a/pkgs/development/python-modules/spsdk/default.nix +++ b/pkgs/development/python-modules/spsdk/default.nix @@ -11,6 +11,7 @@ asn1crypto, bincopy, bitstring, + chardet, click, click-command-tree, click-option-group, @@ -48,24 +49,19 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "spsdk"; - version = "3.6.0"; + version = "3.9.0"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "nxp-mcuxpresso"; repo = "spsdk"; - tag = "v${version}"; - hash = "sha256-eylowyX4ERXSYuhc/Gy4UEqRSG1GjmeRMJdR0mY5E9I="; + tag = "v${finalAttrs.version}"; + hash = "sha256-eA18DvQ0IIZtseJXXXMiFYkaOwBIhVXNaWiAObIj55I="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "setuptools>=72.1,<74" "setuptools" \ - --replace-fail "setuptools_scm<8.2" "setuptools_scm" - ''; - build-system = [ setuptools setuptools-scm @@ -78,6 +74,7 @@ buildPythonPackage rec { "packaging" "prettytable" "requests" + "ruamel.yaml.clib" "setuptools_scm" "typing-extensions" ]; @@ -92,6 +89,7 @@ buildPythonPackage rec { asn1crypto bincopy bitstring + chardet click click-command-tree click-option-group @@ -139,10 +137,13 @@ buildPythonPackage rec { # Attempts to access /run "test_nxpimage_famode_export_cli" + + # spsdk.exceptions.SPSDKValueError: SPSDK: The EC curve with name 'sect163k1' is not supported + "test_keys_generation_ec" ]; meta = { - changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/${src.tag}/docs/release_notes.rst"; + changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/${finalAttrs.src.tag}/docs/release_notes.rst"; description = "NXP Secure Provisioning SDK"; homepage = "https://github.com/nxp-mcuxpresso/spsdk"; license = lib.licenses.bsd3; @@ -150,4 +151,4 @@ buildPythonPackage rec { ]; mainProgram = "spsdk"; }; -} +})