# PyInstaller hook for unicrypto from PyInstaller.utils.hooks import collect_data_files, collect_submodules # Collect all submodules hiddenimports = collect_submodules('unicrypto') # Add specific imports that might be missed hiddenimports += [ 'unicrypto.backends.pycryptodomex', 'unicrypto.backends.pycryptodome', 'unicrypto.backends.oscrypto', 'unicrypto.symmetric', 'unicrypto.asymmetric', 'unicrypto.hashlib', 'unicrypto.random', ] # Collect data files if any datas = collect_data_files('unicrypto')