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
|
|
|
|
, jinja2
|
|
|
|
, libusbsio
|
|
|
|
, oscrypto
|
|
|
|
, pycryptodome
|
|
|
|
, pylink-square
|
|
|
|
, pyocd
|
|
|
|
, pypemicro
|
|
|
|
, pyserial
|
|
|
|
, ruamel-yaml
|
|
|
|
, sly
|
|
|
|
, pytestCheckHook
|
|
|
|
, voluptuous
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spsdk";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.8.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NXPmicro";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-yCmkOrUe5XqbuHeo7F84j1gmdzpdpCRWdD9V74U64c4=";
|
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"
|
|
|
|
"pylink-square"
|
|
|
|
"pyocd"
|
|
|
|
];
|
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-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spsdk" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "NXP Secure Provisioning SDK";
|
|
|
|
homepage = "https://github.com/NXPmicro/spsdk";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ frogamic sbruder ];
|
|
|
|
};
|
|
|
|
}
|