2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dos2unix
|
|
|
|
, 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
|
|
|
|
, cmsis-pack-manager
|
|
|
|
, commentjson
|
|
|
|
, crcmod
|
|
|
|
, cryptography
|
|
|
|
, deepmerge
|
|
|
|
, fastjsonschema
|
|
|
|
, hexdump
|
2023-08-22 20:05:09 +00:00
|
|
|
, importlib-metadata
|
2022-08-21 13:32:41 +00:00
|
|
|
, jinja2
|
|
|
|
, libusbsio
|
|
|
|
, oscrypto
|
|
|
|
, pycryptodome
|
2023-08-22 20:05:09 +00:00
|
|
|
, pyftdi
|
2022-08-21 13:32:41 +00:00
|
|
|
, pylink-square
|
|
|
|
, pyocd
|
|
|
|
, pypemicro
|
|
|
|
, pyserial
|
|
|
|
, ruamel-yaml
|
|
|
|
, sly
|
2023-03-30 22:05:00 +00:00
|
|
|
, typing-extensions
|
2022-08-21 13:32:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, voluptuous
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spsdk";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.11.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-22 20:05:09 +00:00
|
|
|
owner = "nxp-mcuxpresso";
|
2022-08-21 13:32:41 +00:00
|
|
|
repo = pname;
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-B3qedAXSG3A8rcWu1O2GnZ1ZqHN+7fQK43qXzGnDEY0=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2022-12-17 10:02:37 +00:00
|
|
|
"bincopy"
|
|
|
|
"bitstring"
|
2022-08-21 13:32:41 +00:00
|
|
|
"cmsis-pack-manager"
|
|
|
|
"deepmerge"
|
|
|
|
"jinja2"
|
2023-03-30 22:05:00 +00:00
|
|
|
"pycryptodome"
|
2022-08-21 13:32:41 +00:00
|
|
|
"pylink-square"
|
|
|
|
"pyocd"
|
2023-03-30 22:05:00 +00:00
|
|
|
"typing-extensions"
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
pythonRemoveDeps = [
|
|
|
|
"pyocd-pemicro"
|
|
|
|
];
|
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
|
|
|
|
cmsis-pack-manager
|
|
|
|
commentjson
|
|
|
|
crcmod
|
|
|
|
cryptography
|
|
|
|
deepmerge
|
|
|
|
fastjsonschema
|
|
|
|
hexdump
|
|
|
|
jinja2
|
|
|
|
libusbsio
|
|
|
|
oscrypto
|
|
|
|
pycryptodome
|
|
|
|
pylink-square
|
|
|
|
pyocd
|
|
|
|
pypemicro
|
|
|
|
pyserial
|
|
|
|
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 = [
|
2023-08-22 20:05:09 +00:00
|
|
|
importlib-metadata
|
|
|
|
pyftdi
|
2022-08-21 13:32:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spsdk" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ frogamic sbruder ];
|
|
|
|
};
|
|
|
|
}
|