uefi-firmware-parser: make available as python package

This commit is contained in:
George Huebner 2026-01-31 11:07:03 -06:00 committed by Fabian Affolter
parent db952ffcd6
commit 117f82d9bf
3 changed files with 40 additions and 38 deletions

View file

@ -1,38 +1 @@
{
fetchFromGitHub,
lib,
nix-update-script,
python3,
}:
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "uefi-firmware-parser";
version = "1.13";
pyproject = true;
src = fetchFromGitHub {
owner = "theopolis";
repo = "uefi-firmware-parser";
rev = "v${finalAttrs.version}";
hash = "sha256-JPNur7Ipi+Ite9B7lqDm7h7iYUga8D+l18J2knCWZpk=";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
pythonRemoveDeps = [ "future" ];
pythonImportsCheck = [ "uefi_firmware" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Tool for parsing, extracting, and recreating UEFI firmware volumes";
homepage = "https://github.com/theopolis/uefi-firmware-parser";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
mainProgram = "uefi-firmware-parser";
};
})
{ python3Packages }: with python3Packages; toPythonApplication uefi-firmware-parser

View file

@ -0,0 +1,37 @@
{
fetchFromGitHub,
lib,
buildPythonPackage,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "uefi-firmware-parser";
version = "1.12";
pyproject = true;
src = fetchFromGitHub {
owner = "theopolis";
repo = "uefi-firmware-parser";
tag = "v${version}";
hash = "sha256-Yiw9idmvSpx4CcVrXHznR8vK/xl7DTL+L7k4Nvql2B8=";
};
build-system = [
setuptools
wheel
];
pythonRemoveDeps = [ "future" ];
pythonImportsCheck = [ "uefi_firmware" ];
meta = {
description = "Tool for parsing, extracting, and recreating UEFI firmware volumes";
homepage = "https://github.com/theopolis/uefi-firmware-parser";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
mainProgram = "uefi-firmware-parser";
};
}

View file

@ -20242,6 +20242,8 @@ self: super: with self; {
inherit (pkgs) libx11 libxext;
};
uefi-firmware-parser = callPackage ../development/python-modules/uefi-firmware-parser { };
ufal-chu-liu-edmonds = callPackage ../development/python-modules/ufal-chu-liu-edmonds { };
ufmt = callPackage ../development/python-modules/ufmt { };