mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
1375f28c0e
When I introduced the package I ended mixing projects, so now I am fixing the pname as intended. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
39 lines
807 B
Nix
39 lines
807 B
Nix
{ lib
|
|
, fetchPypi
|
|
, python3Packages
|
|
, nix-update-script
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "mcuboot-imgtool";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "imgtool";
|
|
hash = "sha256-elQSVeae7B8Sqjjc4fHU/iDYISZ3xoqbbsY0ypGgZhI=";
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
cbor2
|
|
click
|
|
cryptography
|
|
intelhex
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "MCUboot's image signing and key management";
|
|
homepage = "https://github.com/mcu-tools/mcuboot/tree/main/scripts";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ otavio ];
|
|
mainProgram = "imgtool";
|
|
};
|
|
}
|