nixpkgs/pkgs/development/python-modules/spsdk/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

104 lines
1.6 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, dos2unix
, pythonRelaxDepsHook
, asn1crypto
, astunparse
, bincopy
, bitstring
, click
, click-command-tree
, 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";
version = "1.8.0";
src = fetchFromGitHub {
owner = "NXPmicro";
repo = pname;
rev = version;
hash = "sha256-yCmkOrUe5XqbuHeo7F84j1gmdzpdpCRWdD9V74U64c4=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"bincopy"
"bitstring"
"cmsis-pack-manager"
"deepmerge"
"jinja2"
"pylink-square"
"pyocd"
];
pythonRemoveDeps = [
"pyocd-pemicro"
];
propagatedBuildInputs = [
asn1crypto
astunparse
bincopy
bitstring
click
click-command-tree
click-option-group
cmsis-pack-manager
commentjson
crcmod
cryptography
deepmerge
fastjsonschema
hexdump
jinja2
libusbsio
oscrypto
pycryptodome
pylink-square
pyocd
pypemicro
pyserial
ruamel-yaml
sly
];
nativeCheckInputs = [
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 ];
};
}