2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, cryptography
|
|
|
|
, pytestCheckHook
|
|
|
|
, pefile
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "virt-firmware";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "24.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-dUDfDQypP8hCo4eZcnUsOovgMksSX7hxMQI8mliCx2c=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|