python311Packages.virt-firmware: fix tests

This commit is contained in:
Martin Weinelt 2024-05-18 19:35:09 +02:00
parent e562c1a88d
commit e5d4072b74
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,4 +1,6 @@
{ lib
, pkgs
, stdenv
, buildPythonPackage
, fetchPypi
, setuptools
@ -10,7 +12,6 @@
buildPythonPackage rec {
pname = "virt-firmware";
version = "24.4";
pyproject = true;
src = fetchPypi {
@ -18,23 +19,28 @@ buildPythonPackage rec {
hash = "sha256-rqhaKDOQEOj6bcRz3qZJ+a4yG1qTC9SUjuxMhZlnmwU=";
};
pythonImportsCheck = [ "virt.firmware.efi" ];
nativeBuildInputs = [
build-system = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = ["tests/tests.py"];
propagatedBuildInputs = [
dependencies = [
setuptools
cryptography
pefile
];
# tests require systemd-detect-virt
doCheck = lib.meta.availableOn stdenv.hostPlatform pkgs.systemd;
nativeCheckInputs = [
pytestCheckHook
pkgs.systemd
];
pytestFlagsArray = [ "tests/tests.py" ];
pythonImportsCheck = [ "virt.firmware.efi" ];
meta = with lib; {
description = "Tools for virtual machine firmware volumes";
homepage = "https://gitlab.com/kraxel/virt-firmware";