2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
cryptography,
|
|
|
|
pytestCheckHook,
|
|
|
|
pefile,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "virt-firmware";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "24.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-rqhaKDOQEOj6bcRz3qZJ+a4yG1qTC9SUjuxMhZlnmwU=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools
|
2024-06-05 15:53:02 +00:00
|
|
|
cryptography
|
|
|
|
pefile
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests require systemd-detect-virt
|
|
|
|
doCheck = lib.meta.availableOn stdenv.hostPlatform pkgs.systemd;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
pkgs.systemd
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "tests/tests.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "virt.firmware.efi" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for virtual machine firmware volumes";
|
|
|
|
homepage = "https://gitlab.com/kraxel/virt-firmware";
|
|
|
|
license = licenses.gpl2;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
lheckemann
|
|
|
|
raitobezarius
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
}
|