1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, setuptools 6, cbor2 7, click 8, cryptography 9, intelhex 10, pyyaml 11}: 12 13buildPythonPackage rec { 14 pname = "imgtool"; 15 version = "2.0.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-elQSVeae7B8Sqjjc4fHU/iDYISZ3xoqbbsY0ypGgZhI="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 cbor2 31 click 32 cryptography 33 intelhex 34 pyyaml 35 ]; 36 37 pythonImportsCheck = [ 38 "imgtool" 39 ]; 40 41 meta = with lib; { 42 description = "MCUboot's image signing and key management"; 43 homepage = "https://github.com/mcu-tools/mcuboot"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ samueltardieu ]; 46 }; 47}