diff options
Diffstat (limited to 'pkgs/development/python-modules/virt-firmware/default.nix')
-rw-r--r-- | pkgs/development/python-modules/virt-firmware/default.nix | 46 |
1 files changed, 27 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/virt-firmware/default.nix b/pkgs/development/python-modules/virt-firmware/default.nix index 8f2f0c0736098..960a2327586a7 100644 --- a/pkgs/development/python-modules/virt-firmware/default.nix +++ b/pkgs/development/python-modules/virt-firmware/default.nix @@ -1,44 +1,52 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, cryptography -, pytestCheckHook -, pefile +{ + lib, + pkgs, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools, + cryptography, + pytestCheckHook, + pefile, }: buildPythonPackage rec { pname = "virt-firmware"; - version = "24.2"; - + version = "24.4"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-bvk3MIgPY6DJ+y0eKQHLffClNjPAEP7AJ15rFObiMig="; + hash = "sha256-rqhaKDOQEOj6bcRz3qZJ+a4yG1qTC9SUjuxMhZlnmwU="; }; - pythonImportsCheck = [ "virt.firmware.efi" ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ + 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"]; - propagatedBuildInputs = [ - setuptools - cryptography - pefile - ]; + 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"; license = licenses.gpl2; - maintainers = with maintainers; [ lheckemann raitobezarius ]; + maintainers = with maintainers; [ + lheckemann + raitobezarius + ]; }; } |