2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, cryptography
|
|
|
|
, pytestCheckHook
|
|
|
|
, pefile
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "virt.firmware.efi" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
pytestFlagsArray = ["tests/tests.py"];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2024-01-02 11:29:13 +00:00
|
|
|
cryptography
|
|
|
|
pefile
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for virtual machine firmware volumes";
|
|
|
|
homepage = "https://gitlab.com/kraxel/virt-firmware";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ lheckemann raitobezarius ];
|
|
|
|
};
|
|
|
|
}
|