Unverified Commit 315f6a45 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

uefi-firmware-parser: make available as python package,...

uefi-firmware-parser: make available as python package, python3Packages.uefi-firmware-parser: 1.12 -> 1.13 (#497508)
parents 9a9bff87 6e32bab2
Loading
Loading
Loading
Loading
+1 −38
Original line number Diff line number Diff line
{
  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
+39 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };