Files
the-littlest-jupyterhub/integration-tests/plugins/simplest/tljh_simplest.py
yuvipanda 77dc6a0e27 Add hook to install packages in hub environment
Required when installing additional authenticators or
spawners
2019-06-05 15:20:49 +02:00

38 lines
577 B
Python

"""
Simplest plugin that exercises all the hooks
"""
from tljh.hooks import hookimpl
@hookimpl
def tljh_extra_user_conda_packages():
return [
'hypothesis',
]
@hookimpl
def tljh_extra_user_pip_packages():
return [
'django',
]
@hookimpl
def tljh_extra_hub_pip_packages():
return [
'there',
]
@hookimpl
def tljh_extra_apt_packages():
return [
'sl',
]
@hookimpl
def tljh_config_post_install(config):
# Put an arbitrary marker we can test for
config['simplest_plugin'] = {
'present': True
}