test driver: normalize callpackage call (#468717)

This commit is contained in:
Robert Hensing
2025-12-09 00:05:21 +00:00
committed by GitHub
2 changed files with 30 additions and 21 deletions
+29 -20
View File
@@ -1,41 +1,50 @@
{
lib,
python3Packages,
enableOCR ? false,
qemu_pkg ? qemu_test,
buildPythonApplication,
colorama,
coreutils,
imagemagick_light,
netpbm,
qemu_test,
socat,
ipython,
junit-xml,
mypy,
ptpython,
python,
ruff,
remote-pdb,
netpbm,
nixosTests,
qemu_pkg ? qemu_test,
qemu_test,
setuptools,
socat,
tesseract4,
vde2,
enableOCR ? false,
extraPythonPackages ? (_: [ ]),
nixosTests,
}:
python3Packages.buildPythonApplication {
buildPythonApplication {
pname = "nixos-test-driver";
version = "1.1";
pyproject = true;
src = ./src;
build-system = with python3Packages; [
build-system = [
setuptools
];
dependencies =
with python3Packages;
[
colorama
junit-xml
ptpython
ipython
remote-pdb
]
++ extraPythonPackages python3Packages;
dependencies = [
colorama
ipython
junit-xml
ptpython
remote-pdb
]
++ extraPythonPackages python.pkgs;
propagatedBuildInputs = [
coreutils
@@ -55,7 +64,7 @@ python3Packages.buildPythonApplication {
doCheck = true;
nativeCheckInputs = with python3Packages; [
nativeCheckInputs = [
mypy
ruff
];
+1 -1
View File
@@ -9,7 +9,7 @@ let
# Reifies and correctly wraps the python test driver for
# the respective qemu version and with or without ocr support
testDriver = hostPkgs.callPackage ../test-driver {
testDriver = hostPkgs.python3Packages.callPackage ../test-driver {
inherit (config) enableOCR extraPythonPackages;
qemu_pkg = config.qemu.package;
imagemagick_light = hostPkgs.imagemagick_light.override { inherit (hostPkgs) libtiff; };