13 , extraPythonPackages ? (_ : [])
19 python3Packages.buildPythonApplication {
20 pname = "nixos-test-driver";
27 ./extract-docstrings.py
32 propagatedBuildInputs = [
35 python3Packages.colorama
36 python3Packages.junit-xml
37 python3Packages.ptpython
42 ++ (lib.optionals enableOCR [ imagemagick_light tesseract4 ])
43 ++ extraPythonPackages python3Packages;
46 python3Packages.setuptools
50 inherit (nixosTests.nixos-test-driver) driver-timeout;
54 nativeCheckInputs = with python3Packages; [ mypy ruff black ];
56 echo -e "\x1b[32m## run mypy\x1b[0m"
57 mypy test_driver extract-docstrings.py
58 echo -e "\x1b[32m## run ruff\x1b[0m"
60 echo -e "\x1b[32m## run black\x1b[0m"
61 black --check --diff .