blob: d190652c4be448b6c2f2d35c9022e626b8e66f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
pkgs,
stdenv,
buildPythonPackage,
fetchFromGitLab,
setuptools,
cryptography,
pytestCheckHook,
pefile,
}:
buildPythonPackage rec {
pname = "virt-firmware";
version = "25.7.3";
pyproject = true;
src = fetchFromGitLab {
owner = "kraxel";
repo = "virt-firmware";
tag = "v${version}";
hash = "sha256-kuFTKMhBVlgCBYLTO23IUz/tRLoMRHxjWPIaauu/PWw=";
};
build-system = [ setuptools ];
dependencies = [
setuptools
cryptography
pefile
];
# tests require systemd-detect-virt
doCheck = lib.meta.availableOn stdenv.hostPlatform pkgs.systemd;
nativeCheckInputs = [
pytestCheckHook
pkgs.systemd
];
enabledTestPaths = [ "tests/tests.py" ];
pythonImportsCheck = [ "virt.firmware.efi" ];
meta = {
description = "Tools for virtual machine firmware volumes";
homepage = "https://gitlab.com/kraxel/virt-firmware";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [
raitobezarius
];
};
}
|