python312Packages.spsdk: 2.5.0 -> 2.6.1 (#402515)
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
hidapi,
|
||||
pyusb,
|
||||
|
||||
# tests
|
||||
click,
|
||||
pytestCheckHook,
|
||||
spsdk,
|
||||
writableTmpDirAsHomeHook,
|
||||
|
||||
# passthru
|
||||
spsdk-mcu-link,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spsdk-mcu-link";
|
||||
version = "0.6.0";
|
||||
pyproject = true;
|
||||
|
||||
# Latest tag missing on GitHub
|
||||
src = fetchPypi {
|
||||
pname = "spsdk_mcu_link";
|
||||
inherit version;
|
||||
hash = "sha256-x+aOfFdD0+IfDT7LA2QlYqR7kMOwPfvlMCcZvOYnM0Q=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonRemoveDeps = [
|
||||
# unpackaged
|
||||
"libusb_package"
|
||||
"wasmtime"
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"pyusb"
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
hidapi
|
||||
pyusb
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
click
|
||||
pytestCheckHook
|
||||
spsdk
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
# Cyclic dependency with spsdk
|
||||
doCheck = false;
|
||||
|
||||
passthru.tests = {
|
||||
pytest = spsdk-mcu-link.overridePythonAttrs {
|
||||
pythonImportsCheck = [
|
||||
"spsdk_mcu_link"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Debugger probe plugin for SPSDK supporting LPC-Link/MCU-Link from NXP";
|
||||
homepage = "https://pypi.org/project/spsdk-mcu-link";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
pyocd,
|
||||
pyocd-pemicro,
|
||||
spsdk,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
|
||||
# passthru
|
||||
spsdk-pyocd,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spsdk-pyocd";
|
||||
version = "0.3.1";
|
||||
pyproject = true;
|
||||
|
||||
# Latest tag missing on GitHub
|
||||
src = fetchPypi {
|
||||
pname = "spsdk_pyocd";
|
||||
inherit version;
|
||||
hash = "sha256-yVQtX2T1l0TmFwaZDSFCXMuoFxTalfOr3b4CCTeteKI=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
pyocd
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
pemicro = [
|
||||
pyocd-pemicro
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
spsdk
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
# Cyclic dependency with spsdk
|
||||
doCheck = false;
|
||||
|
||||
passthru.tests = {
|
||||
pytest = spsdk-pyocd.overridePythonAttrs {
|
||||
pythonImportsCheck = [ "spsdk_pyocd" ];
|
||||
|
||||
doCheck = true;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Debugger probe plugin for SPSDK";
|
||||
homepage = "https://pypi.org/project/spsdk-pyocd";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
@@ -27,12 +27,16 @@
|
||||
packaging,
|
||||
platformdirs,
|
||||
prettytable,
|
||||
pyasn1,
|
||||
pyocd,
|
||||
pyserial,
|
||||
requests,
|
||||
ruamel-yaml,
|
||||
sly,
|
||||
spsdk-mcu-link,
|
||||
spsdk-pyocd,
|
||||
typing-extensions,
|
||||
x690,
|
||||
|
||||
# tests
|
||||
ipykernel,
|
||||
@@ -40,26 +44,25 @@
|
||||
pytestCheckHook,
|
||||
voluptuous,
|
||||
versionCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spsdk";
|
||||
version = "2.5.0";
|
||||
version = "2.6.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nxp-mcuxpresso";
|
||||
repo = "spsdk";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-Ua32c6hNjwfjsQIugiqtRL50AvOrPgqyKoG1Lb0NVqE=";
|
||||
hash = "sha256-AdW19Zf5TZ6hChXbW9dLGcMpFTQOT1wrPzEqaSfWzDE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "setuptools>=72.1,<74" "setuptools"
|
||||
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "setuptools>=72.1,<74" "setuptools"
|
||||
--replace-fail "setuptools>=72.1,<74" "setuptools" \
|
||||
--replace-fail "setuptools_scm<8.2" "setuptools_scm"
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
@@ -69,8 +72,12 @@ buildPythonPackage rec {
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"cryptography"
|
||||
"requests"
|
||||
"filelock"
|
||||
"importlib-metadata"
|
||||
"packaging"
|
||||
"prettytable"
|
||||
"requests"
|
||||
"setuptools_scm"
|
||||
"typing-extensions"
|
||||
];
|
||||
|
||||
@@ -100,26 +107,27 @@ buildPythonPackage rec {
|
||||
packaging
|
||||
platformdirs
|
||||
prettytable
|
||||
pyasn1
|
||||
pyocd
|
||||
pyserial
|
||||
requests
|
||||
ruamel-yaml
|
||||
sly
|
||||
spsdk-mcu-link
|
||||
spsdk-pyocd
|
||||
typing-extensions
|
||||
x690
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "spsdk" ];
|
||||
|
||||
preInstallCheck = ''
|
||||
export HOME="$(mktemp -d)"
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
ipykernel
|
||||
pytest-notebook
|
||||
pytestCheckHook
|
||||
voluptuous
|
||||
versionCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
@@ -129,7 +137,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/${src.tag}/docs/release_notes.rst";
|
||||
changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/v${version}/docs/release_notes.rst";
|
||||
description = "NXP Secure Provisioning SDK";
|
||||
homepage = "https://github.com/nxp-mcuxpresso/spsdk";
|
||||
license = lib.licenses.bsd3;
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "t61codec";
|
||||
version = "2.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "exhuma";
|
||||
repo = "t61codec";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-PNUahn6NpNWdK3yhcQ23qb08lkZeNW61GosShLiyPc8=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "t61codec" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python codec for T.61 strings";
|
||||
homepage = "https://github.com/exhuma/t61codec";
|
||||
changelog = "https://github.com/exhuma/t61codec/blob/v${version}/CHANGES.rst";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
t61codec,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "x690";
|
||||
version = "1.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "exhuma";
|
||||
repo = "x690";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-yU4FABlTAFoj87SJXDA+sVCJT3pCbYxpTXp7Ja2ltGE=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"t61codec"
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
t61codec
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "x690" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# AssertionError: "<UnknownType 99 b'abc' TypeClass.APPLICATION/TypeNature.CONSTRUCTED/3>" != "<UnknownType 99 b'abc' application/constructed/3>"
|
||||
"test_repr"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Pure Python X.690 implementation";
|
||||
homepage = "https://github.com/exhuma/x690";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
@@ -16439,6 +16439,10 @@ self: super: with self; {
|
||||
|
||||
spsdk = callPackage ../development/python-modules/spsdk { };
|
||||
|
||||
spsdk-mcu-link = callPackage ../development/python-modules/spsdk-mcu-link { };
|
||||
|
||||
spsdk-pyocd = callPackage ../development/python-modules/spsdk-pyocd { };
|
||||
|
||||
spur = callPackage ../development/python-modules/spur { };
|
||||
|
||||
spyder = callPackage ../development/python-modules/spyder { };
|
||||
@@ -16894,6 +16898,8 @@ self: super: with self; {
|
||||
|
||||
sysv-ipc = callPackage ../development/python-modules/sysv-ipc { };
|
||||
|
||||
t61codec = callPackage ../development/python-modules/t61codec { };
|
||||
|
||||
tabcmd = callPackage ../development/python-modules/tabcmd { };
|
||||
|
||||
tableaudocumentapi = callPackage ../development/python-modules/tableaudocumentapi { };
|
||||
@@ -19029,6 +19035,8 @@ self: super: with self; {
|
||||
|
||||
x256 = callPackage ../development/python-modules/x256 { };
|
||||
|
||||
x690 = callPackage ../development/python-modules/x690 { };
|
||||
|
||||
xapian = callPackage ../development/python-modules/xapian { inherit (pkgs) xapian; };
|
||||
|
||||
xarray = callPackage ../development/python-modules/xarray { };
|
||||
|
||||
Reference in New Issue
Block a user