mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
yaookctl: add import checks
This commit is contained in:
@@ -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" ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user