Skip to content

Commit

Permalink
python3Packages.spsdk 2.1.1 -> 2.2.0
Browse files Browse the repository at this point in the history
Patch out pyocd_pemicro, unused and unfree dependency
  • Loading branch information
frogamic committed Jun 20, 2024
1 parent f54633f commit 5bd62c4
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions pkgs/development/python-modules/spsdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
fetchFromGitHub,
pythonRelaxDepsHook,
asn1crypto,
astunparse,
bincopy,
bitstring,
click,
Expand All @@ -18,16 +17,14 @@
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,32 +37,29 @@

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 = [
build-system = [
pythonRelaxDepsHook
setuptools
setuptools-scm
];

pythonRelaxDeps = [
"click"
"cryptography"
"platformdirs"
"requests"
"typing-extensions"
];
pythonRelaxDeps = [ "requests" ];

# Remove unneeded unfree package. pyocd-pemicro is only used when
# generating a pyinstaller package, which we don't do.
pythonRemoveDeps = [ "pyocd-pemicro" ];

propagatedBuildInputs = [
dependencies = [
asn1crypto
astunparse
bincopy
bitstring
click
Expand All @@ -79,12 +73,10 @@ buildPythonPackage rec {
hexdump
libusbsio
oscrypto
packaging
platformdirs
prettytable
pylink-square
pyocd
pyocd-pemicro
pypemicro
pyserial
requests
ruamel-yaml
Expand All @@ -99,11 +91,6 @@ buildPythonPackage rec {
voluptuous
];

disabledTests = [
"test_nxpcrypto_create_signature_algorithm"
"test_nxpimage_sb31_kaypair_not_matching"
];

pythonImportsCheck = [ "spsdk" ];

passthru.tests.version = testers.testVersion { package = spsdk; };
Expand Down

0 comments on commit 5bd62c4

Please sign in to comment.