2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, asn1crypto
|
|
|
|
, astunparse
|
|
|
|
, 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-04-21 15:54:59 +00:00
|
|
|
, platformdirs
|
|
|
|
, prettytable
|
2022-08-21 13:32:41 +00:00
|
|
|
, pylink-square
|
|
|
|
, pyocd
|
2024-04-21 15:54:59 +00:00
|
|
|
, pyocd-pemicro
|
2022-08-21 13:32:41 +00:00
|
|
|
, pypemicro
|
|
|
|
, pyserial
|
2024-01-25 14:12:00 +00:00
|
|
|
, requests
|
2022-08-21 13:32:41 +00:00
|
|
|
, ruamel-yaml
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2022-08-21 13:32:41 +00:00
|
|
|
, sly
|
2023-10-09 19:29:22 +00:00
|
|
|
, spsdk
|
|
|
|
, testers
|
2023-03-30 22:05:00 +00:00
|
|
|
, typing-extensions
|
2024-04-21 15:54:59 +00:00
|
|
|
, ipykernel
|
|
|
|
, pytest-notebook
|
2022-08-21 13:32:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, voluptuous
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spsdk";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.1";
|
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}";
|
|
|
|
hash = "sha256-cWz2zML/gb9l2C5VEBti+nX3ZLyGbLFyLZGjk5GfTJw=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-01-25 14:12:00 +00:00
|
|
|
"click"
|
2024-04-21 15:54:59 +00:00
|
|
|
"cryptography"
|
|
|
|
"platformdirs"
|
|
|
|
"typing-extensions"
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asn1crypto
|
|
|
|
astunparse
|
|
|
|
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-04-21 15:54:59 +00:00
|
|
|
platformdirs
|
|
|
|
prettytable
|
2022-08-21 13:32:41 +00:00
|
|
|
pylink-square
|
|
|
|
pyocd
|
2024-04-21 15:54:59 +00:00
|
|
|
pyocd-pemicro
|
2022-08-21 13:32:41 +00:00
|
|
|
pypemicro
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_nxpcrypto_create_signature_algorithm"
|
|
|
|
"test_nxpimage_sb31_kaypair_not_matching"
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
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; {
|
2024-04-21 15:54:59 +00:00
|
|
|
broken = versionAtLeast cryptography.version "41.1";
|
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;
|
|
|
|
maintainers = with maintainers; [ frogamic sbruder ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "spsdk";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|