Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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, pytestCheckHook
31, voluptuous
32}:
33
34buildPythonPackage rec {
35 pname = "spsdk";
36 version = "1.8.0";
37
38 src = fetchFromGitHub {
39 owner = "NXPmicro";
40 repo = pname;
41 rev = version;
42 hash = "sha256-yCmkOrUe5XqbuHeo7F84j1gmdzpdpCRWdD9V74U64c4=";
43 };
44
45 nativeBuildInputs = [
46 pythonRelaxDepsHook
47 ];
48
49 pythonRelaxDeps = [
50 "bincopy"
51 "bitstring"
52 "cmsis-pack-manager"
53 "deepmerge"
54 "jinja2"
55 "pylink-square"
56 "pyocd"
57 ];
58
59 pythonRemoveDeps = [
60 "pyocd-pemicro"
61 ];
62
63 propagatedBuildInputs = [
64 asn1crypto
65 astunparse
66 bincopy
67 bitstring
68 click
69 click-command-tree
70 click-option-group
71 cmsis-pack-manager
72 commentjson
73 crcmod
74 cryptography
75 deepmerge
76 fastjsonschema
77 hexdump
78 jinja2
79 libusbsio
80 oscrypto
81 pycryptodome
82 pylink-square
83 pyocd
84 pypemicro
85 pyserial
86 ruamel-yaml
87 sly
88 ];
89
90 checkInputs = [
91 pytestCheckHook
92 voluptuous
93 ];
94
95 pythonImportsCheck = [ "spsdk" ];
96
97 meta = with lib; {
98 description = "NXP Secure Provisioning SDK";
99 homepage = "https://github.com/NXPmicro/spsdk";
100 license = licenses.bsd3;
101 maintainers = with maintainers; [ frogamic sbruder ];
102 };
103}