Unverified Commit 8314afe1 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #258858 from samueltardieu/imgtool

python3Packages.imgtool: init at 1.10.0
parents b6805176 8a8899ae
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, cbor2
, click
, cryptography
, intelhex
}:

buildPythonPackage rec {
  pname = "imgtool";
  version = "1.10.0";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-A7NOdZNKw9lufEK2vK8Rzq9PRT98bybBfXJr0YMQS0A=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    cbor2
    click
    cryptography
    intelhex
  ];

  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -5330,6 +5330,8 @@ self: super: with self; {
  imgsize = callPackage ../development/python-modules/imgsize { };
  imgtool = callPackage ../development/python-modules/imgtool { };
  iminuit = callPackage ../development/python-modules/iminuit { };
  immutabledict = callPackage ../development/python-modules/immutabledict { };