2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
asn1crypto,
|
|
|
|
bincopy,
|
|
|
|
bitstring,
|
|
|
|
click,
|
|
|
|
click-command-tree,
|
|
|
|
click-option-group,
|
|
|
|
colorama,
|
|
|
|
crcmod,
|
|
|
|
cryptography,
|
|
|
|
deepmerge,
|
|
|
|
fastjsonschema,
|
|
|
|
hexdump,
|
|
|
|
libusbsio,
|
|
|
|
oscrypto,
|
2024-07-27 06:49:29 +00:00
|
|
|
packaging,
|
2024-06-05 15:53:02 +00:00
|
|
|
platformdirs,
|
|
|
|
prettytable,
|
|
|
|
pyocd,
|
|
|
|
pyserial,
|
|
|
|
requests,
|
|
|
|
ruamel-yaml,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools-scm,
|
2024-06-05 15:53:02 +00:00
|
|
|
sly,
|
|
|
|
spsdk,
|
|
|
|
testers,
|
|
|
|
typing-extensions,
|
|
|
|
ipykernel,
|
|
|
|
pytest-notebook,
|
|
|
|
pytestCheckHook,
|
|
|
|
voluptuous,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spsdk";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.2.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-22 20:05:09 +00:00
|
|
|
owner = "nxp-mcuxpresso";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "spsdk";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-2CFxJAP87ysly0i4AfODbwUt5W287+OK7fatdPco7e4=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-06-20 14:57:18 +00:00
|
|
|
"requests"
|
2024-07-27 06:49:29 +00:00
|
|
|
"packaging"
|
2024-04-21 15:54:59 +00:00
|
|
|
"typing-extensions"
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
# Remove unneeded unfree package. pyocd-pemicro is only used when
|
|
|
|
# generating a pyinstaller package, which we don't do.
|
|
|
|
pythonRemoveDeps = [ "pyocd-pemicro" ];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-08-21 13:32:41 +00:00
|
|
|
asn1crypto
|
|
|
|
bincopy
|
|
|
|
bitstring
|
|
|
|
click
|
2022-12-17 10:02:37 +00:00
|
|
|
click-command-tree
|
2022-08-21 13:32:41 +00:00
|
|
|
click-option-group
|
2024-04-21 15:54:59 +00:00
|
|
|
colorama
|
2022-08-21 13:32:41 +00:00
|
|
|
crcmod
|
|
|
|
cryptography
|
|
|
|
deepmerge
|
|
|
|
fastjsonschema
|
|
|
|
hexdump
|
|
|
|
libusbsio
|
|
|
|
oscrypto
|
2024-07-27 06:49:29 +00:00
|
|
|
packaging
|
2024-04-21 15:54:59 +00:00
|
|
|
platformdirs
|
|
|
|
prettytable
|
2022-08-21 13:32:41 +00:00
|
|
|
pyocd
|
|
|
|
pyserial
|
2024-01-25 14:12:00 +00:00
|
|
|
requests
|
2022-08-21 13:32:41 +00:00
|
|
|
ruamel-yaml
|
|
|
|
sly
|
2023-03-30 22:05:00 +00:00
|
|
|
typing-extensions
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
ipykernel
|
|
|
|
pytest-notebook
|
2022-08-21 13:32:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spsdk" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = spsdk; };
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
meta = with lib; {
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/${src.rev}/docs/release_notes.rst";
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "NXP Secure Provisioning SDK";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/nxp-mcuxpresso/spsdk";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.bsd3;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
frogamic
|
|
|
|
sbruder
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "spsdk";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|