mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-04 20:00:10 +00:00
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
This commit is contained in:
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user