yaookctl: add import checks

This commit is contained in:
Silvio Ankermann
2026-08-20 13:11:53 +02:00
parent 32a83148ac
commit 80117c1699

View File

@@ -31,6 +31,20 @@ python3.pkgs.buildPythonApplication {
typing-extensions
];
# Try to import all submodules in order to get warned of new dependencies
checkPhase = ''
runHook preCheck
${python3.interpreter} -c "
import pkgutil, importlib
import yaookctl
for _, name, _ in pkgutil.walk_packages(yaookctl.__path__, yaookctl.__name__ + '.'):
if name.endswith('.__main__'):
continue
importlib.import_module(name)
"
runHook postCheck
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};