depot/third_party/nixpkgs/pkgs/development/python-modules/virt-firmware/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

53 lines
1,019 B
Nix

{
lib,
pkgs,
stdenv,
buildPythonPackage,
fetchFromGitLab,
setuptools,
cryptography,
pytestCheckHook,
pefile,
}:
buildPythonPackage rec {
pname = "virt-firmware";
version = "24.7";
pyproject = true;
src = fetchFromGitLab {
owner = "kraxel";
repo = "virt-firmware";
rev = "refs/tags/v${version}";
hash = "sha256-uVLq4vbnvK1RCA3tpLgwKb/qzysLsOo3p/6gQ2Prmu0=";
};
build-system = [ setuptools ];
dependencies = [
setuptools
cryptography
pefile
];
# tests require systemd-detect-virt
doCheck = lib.meta.availableOn stdenv.hostPlatform pkgs.systemd;
nativeCheckInputs = [
pytestCheckHook
pkgs.systemd
];
pytestFlagsArray = [ "tests/tests.py" ];
pythonImportsCheck = [ "virt.firmware.efi" ];
meta = with lib; {
description = "Tools for virtual machine firmware volumes";
homepage = "https://gitlab.com/kraxel/virt-firmware";
license = licenses.gpl2;
maintainers = with maintainers; [
raitobezarius
];
};
}