Files
nixpkgs/pkgs/development/python-modules/imgtool/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

49 lines
807 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";
mainProgram = "imgtool";
homepage = "https://github.com/mcu-tools/mcuboot";
license = licenses.asl20;
maintainers = with maintainers; [ samueltardieu ];
};
}