mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
buildPythonPackage,
|
|
nix-update-script,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
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
|
|
setuptools-scm
|
|
];
|
|
|
|
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;
|
|
};
|
|
})
|