Skip to content

Commit

Permalink
python3Packages.spsdk 2.1.1 -> 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
frogamic committed Jun 20, 2024
1 parent f54633f commit 65da539
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions pkgs/development/python-modules/spsdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@
hexdump,
libusbsio,
oscrypto,
packaging,
platformdirs,
prettytable,
pylink-square,
pyocd,
pyocd-pemicro,
pypemicro,
pyserial,
requests,
ruamel-yaml,
setuptools,
setuptools-scm,
sly,
spsdk,
testers,
Expand All @@ -40,19 +39,20 @@

buildPythonPackage rec {
pname = "spsdk";
version = "2.1.1";
version = "2.2.0";
pyproject = true;

src = fetchFromGitHub {
owner = "nxp-mcuxpresso";
repo = "spsdk";
rev = "refs/tags/${version}";
hash = "sha256-cWz2zML/gb9l2C5VEBti+nX3ZLyGbLFyLZGjk5GfTJw=";
hash = "sha256-2CFxJAP87ysly0i4AfODbwUt5W287+OK7fatdPco7e4=";
};

nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
setuptools-scm
];

pythonRelaxDeps = [
Expand All @@ -63,6 +63,13 @@ buildPythonPackage rec {
"typing-extensions"
];

# Remove unneeded unfree package. pyocd-pemicro is only used when
# generating a pyinstaller package, which we don't do.
postPatch = ''
substituteInPlace ./requirements.txt \
--replace "pyocd-pemicro<1.2,>=1.1.5" ""
'';

propagatedBuildInputs = [
asn1crypto
astunparse
Expand All @@ -79,12 +86,10 @@ buildPythonPackage rec {
hexdump
libusbsio
oscrypto
packaging
platformdirs
prettytable
pylink-square
pyocd
pyocd-pemicro
pypemicro
pyserial
requests
ruamel-yaml
Expand Down

0 comments on commit 65da539

Please sign in to comment.