504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
47 lines
778 B
Nix
47 lines
778 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
, cbor2
|
|
, click
|
|
, cryptography
|
|
, intelhex
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "imgtool";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-elQSVeae7B8Sqjjc4fHU/iDYISZ3xoqbbsY0ypGgZhI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cbor2
|
|
click
|
|
cryptography
|
|
intelhex
|
|
pyyaml
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"imgtool"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "MCUboot's image signing and key management";
|
|
homepage = "https://github.com/mcu-tools/mcuboot";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ samueltardieu ];
|
|
};
|
|
}
|