From 45c07a2e1c22c2b39690eba932c3bb73f4e8a69d Mon Sep 17 00:00:00 2001 From: joendter <71767955+joendter@users.noreply.github.com> Date: Thu, 22 Oct 2026 13:54:38 +0200 Subject: [PATCH] python3Packages.chipwhisperer: 5.7.0 -> 6.1.0 6.1.0 is the first version supporting numpy>=2.0 enabling us to remove the breaking tag --- .../python-modules/chipwhisperer/default.nix | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/chipwhisperer/default.nix b/pkgs/development/python-modules/chipwhisperer/default.nix index a771d220e084..8f467b1d0336 100644 --- a/pkgs/development/python-modules/chipwhisperer/default.nix +++ b/pkgs/development/python-modules/chipwhisperer/default.nix @@ -16,6 +16,10 @@ libusb1, pyserial, tqdm, + numba, + zarr, + crc, + pycryptodome, # install udevCheckHook, @@ -32,13 +36,13 @@ buildPythonPackage rec { pname = "chipwhisperer"; - version = "5.7.0"; + version = "6.1.0"; src = fetchFromGitHub { owner = "newaetech"; repo = "chipwhisperer"; - tag = version; - hash = "sha256-C7QP044QEP7vmz1lMseLtMTYoKn5SoFV/q9URY7yQ6I="; + tag = "v${version}"; + hash = "sha256-/YqNpNccJo+AmRfU5LwkVxK9wIIAUrtwjOfzH83NadU="; }; pyproject = true; @@ -52,10 +56,6 @@ buildPythonPackage rec { cython ]; - pythonRelaxDeps = [ - "numpy" - ]; - dependencies = [ colorama configobj @@ -64,11 +64,19 @@ buildPythonPackage rec { libusb1 pyserial tqdm + numba + zarr + crc + pycryptodome ]; nativeInstallCheckInputs = [ udevCheckHook ]; + postPatch = '' + substituteInPlace software/chipwhisperer/__init__.py \ + --replace-fail "__version__ = '6.0.0'" "__version__ = '6.1.0'" + ''; # the repo erroneously labels the version as 6.0.0 instead of the 6.1.0 which it really is postInstall = '' # Install udev rules @@ -103,9 +111,8 @@ buildPythonPackage rec { meta = { description = "Toolchain for side-channel power analysis and glitching attacks"; homepage = "https://github.com/newaetech/chipwhisperer"; - changelog = "https://github.com/newaetech/chipwhisperer/releases/tag/${version}"; + changelog = "https://github.com/newaetech/chipwhisperer/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.krishnans2006 ]; - broken = true; # Requires NumPy 1.26.4 (unsupported by nixpkgs) }; }