nixpkgs/pkgs/development/python-modules/uefi-firmware-parser/default.nix
Elliot Berman 8cfc80fe49 python3Packages: uefi-firmware-parser: 1.13 -> 1.16, updateScript, and maintainer
Uprev uefi-firmware-parser to 1.16, add automatic updateScript, and
myself as maintainer.

(cherry picked from commit 2854ca9ce0)
2026-06-09 20:52:20 +00:00

42 lines
1,023 B
Nix

{
fetchFromGitHub,
lib,
buildPythonPackage,
nix-update-script,
setuptools,
wheel,
}:
buildPythonPackage (finalAttrs: {
pname = "uefi-firmware-parser";
version = "1.16";
pyproject = true;
src = fetchFromGitHub {
owner = "theopolis";
repo = "uefi-firmware-parser";
tag = "v${finalAttrs.version}";
hash = "sha256-2vYTOC7cOiQXPMhYM+hqmFyCJeXCkx6RSxgaTIZqbds=";
};
build-system = [
setuptools
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";
changelog = "https://github.com/theopolis/uefi-firmware-parser/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.mit;
mainProgram = "uefi-firmware-parser";
maintainers = [ lib.maintainers.elliotberman ];
platforms = lib.platforms.unix;
};
})