1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, dos2unix
5, pythonRelaxDepsHook
6, asn1crypto
7, astunparse
8, bincopy
9, bitstring
10, click
11, click-command-tree
12, click-option-group
13, cmsis-pack-manager
14, commentjson
15, crcmod
16, cryptography
17, deepmerge
18, fastjsonschema
19, hexdump
20, jinja2
21, libusbsio
22, oscrypto
23, pycryptodome
24, pylink-square
25, pyocd
26, pypemicro
27, pyserial
28, ruamel-yaml
29, sly
30, typing-extensions
31, pytestCheckHook
32, voluptuous
33}:
34
35buildPythonPackage rec {
36 pname = "spsdk";
37 version = "1.10.1";
38
39 src = fetchFromGitHub {
40 owner = "NXPmicro";
41 repo = pname;
42 rev = "refs/tags/${version}";
43 hash = "sha256-2UTgVHqFJqizJ6mDT7+PFec3bQexcBG6v8X0E5Ai4Hc=";
44 };
45
46 nativeBuildInputs = [
47 pythonRelaxDepsHook
48 ];
49
50 pythonRelaxDeps = [
51 "bincopy"
52 "bitstring"
53 "cmsis-pack-manager"
54 "deepmerge"
55 "jinja2"
56 "pycryptodome"
57 "pylink-square"
58 "pyocd"
59 "typing-extensions"
60 ];
61
62 pythonRemoveDeps = [
63 "pyocd-pemicro"
64 ];
65
66 propagatedBuildInputs = [
67 asn1crypto
68 astunparse
69 bincopy
70 bitstring
71 click
72 click-command-tree
73 click-option-group
74 cmsis-pack-manager
75 commentjson
76 crcmod
77 cryptography
78 deepmerge
79 fastjsonschema
80 hexdump
81 jinja2
82 libusbsio
83 oscrypto
84 pycryptodome
85 pylink-square
86 pyocd
87 pypemicro
88 pyserial
89 ruamel-yaml
90 sly
91 typing-extensions
92 ];
93
94 nativeCheckInputs = [
95 pytestCheckHook
96 voluptuous
97 ];
98
99 pythonImportsCheck = [ "spsdk" ];
100
101 meta = with lib; {
102 description = "NXP Secure Provisioning SDK";
103 homepage = "https://github.com/NXPmicro/spsdk";
104 license = licenses.bsd3;
105 maintainers = with maintainers; [ frogamic sbruder ];
106 };
107}