uefi-firmware-parser: make available as python package, python3Packages.uefi-firmware-parser: 1.12 -> 1.13 (#497508)

This commit is contained in:
Fabian Affolter
2026-03-07 10:16:55 +00:00
committed by GitHub
3 changed files with 42 additions and 38 deletions
@@ -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
@@ -0,0 +1,39 @@
{
fetchFromGitHub,
lib,
buildPythonPackage,
setuptools,
wheel,
}:
buildPythonPackage (finalAttrs: {
pname = "uefi-firmware-parser";
version = "1.13";
pyproject = true;
src = fetchFromGitHub {
owner = "theopolis";
repo = "uefi-firmware-parser";
tag = "v${finalAttrs.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";
changelog = "https://github.com/theopolis/uefi-firmware-parser/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.mit;
mainProgram = "uefi-firmware-parser";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})
+2
View File
@@ -20248,6 +20248,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 { };