1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyyaml,
6}:
7
8buildPythonPackage {
9 pname = "ovmfvartool";
10 version = "unstable-2022-09-04";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "hlandau";
15 repo = "ovmfvartool";
16 rev = "45e6b1e53967ee6590faae454c076febce096931";
17 hash = "sha256-XbvcE/MXNj5S5N7A7jxdwgEE5yMuB82Xg+PYBsFRIm0=";
18 };
19
20 propagatedBuildInputs = [ pyyaml ];
21
22 # has no tests
23 doCheck = false;
24
25 pythonImportsCheck = [ "ovmfvartool" ];
26
27 meta = with lib; {
28 description = "Parse and generate OVMF_VARS.fd from Yaml";
29 mainProgram = "ovmfvartool";
30 homepage = "https://github.com/hlandau/ovmfvartool";
31 license = licenses.gpl3Plus;
32 maintainers = with maintainers; [
33 baloo
34 raitobezarius
35 ];
36 };
37}