nixpkgs/pkgs/development/python-modules/spsdk/default.nix
2023-09-18 09:02:28 +02:00

117 lines
1.9 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonRelaxDepsHook
, asn1crypto
, astunparse
, bincopy
, bitstring
, click
, click-command-tree
, click-option-group
, cmsis-pack-manager
, commentjson
, crcmod
, cryptography
, deepmerge
, fastjsonschema
, hexdump
, importlib-metadata
, jinja2
, libusbsio
, oscrypto
, pycryptodome
, pyftdi
, pylink-square
, pyocd
, pypemicro
, pyserial
, ruamel-yaml
, sly
, spsdk
, testers
, typing-extensions
, pytestCheckHook
, voluptuous
}:
buildPythonPackage rec {
pname = "spsdk";
version = "1.11.0";
src = fetchFromGitHub {
owner = "nxp-mcuxpresso";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-B3qedAXSG3A8rcWu1O2GnZ1ZqHN+7fQK43qXzGnDEY0=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"bincopy"
"bitstring"
"cmsis-pack-manager"
"deepmerge"
"jinja2"
"pycryptodome"
"pylink-square"
"pyocd"
"typing-extensions"
];
pythonRemoveDeps = [
"pyocd-pemicro"
];
propagatedBuildInputs = [
asn1crypto
astunparse
bincopy
bitstring
click
click-command-tree
click-option-group
cmsis-pack-manager
commentjson
crcmod
cryptography
deepmerge
fastjsonschema
hexdump
importlib-metadata
jinja2
libusbsio
oscrypto
pycryptodome
pylink-square
pyocd
pypemicro
pyserial
ruamel-yaml
sly
typing-extensions
];
nativeCheckInputs = [
pyftdi
pytestCheckHook
voluptuous
];
pythonImportsCheck = [ "spsdk" ];
passthru.tests.version = testers.testVersion { package = spsdk; };
meta = with lib; {
changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/${src.rev}/docs/release_notes.rst";
description = "NXP Secure Provisioning SDK";
homepage = "https://github.com/nxp-mcuxpresso/spsdk";
license = licenses.bsd3;
maintainers = with maintainers; [ frogamic sbruder ];
mainProgram = "spsdk";
};
}