nixpkgs/pkgs/by-name/ue/uefi-firmware-parser/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
915 B
Nix
Raw Normal View History

2024-11-14 08:53:01 +00:00
{
fetchFromGitHub,
lib,
nix-update-script,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "uefi-firmware-parser";
version = "1.12";
pyproject = true;
src = fetchFromGitHub {
owner = "theopolis";
repo = "uefi-firmware-parser";
rev = "v${version}";
hash = "sha256-Yiw9idmvSpx4CcVrXHznR8vK/xl7DTL+L7k4Nvql2B8=";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
dependencies = [ python3.pkgs.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;
maintainers = with lib.maintainers; [ KSJ2000 ];
mainProgram = "uefi-firmware-parser";
};
}