9 configurable-http-proxy,
43 buildPythonPackage rec {
48 disabled = pythonOlder "3.8";
50 src = fetchFromGitHub {
53 rev = "refs/tags/${version}";
54 hash = "sha256-3L83FLhLCdTgOuFRgRMbz316cYbai0Z+hJwxXUCYB2Y=";
57 npmDeps = fetchNpmDeps {
59 hash = "sha256-b7j6iGYXrwco4YruqRPEEi4yWRF6otTUD2jKCEPcLTE=";
63 substituteInPlace jupyterhub/proxy.py --replace-fail \
64 "'configurable-http-proxy'" \
65 "'${configurable-http-proxy}/bin/configurable-http-proxy'"
67 substituteInPlace jupyterhub/tests/test_proxy.py --replace-fail \
68 "'configurable-http-proxy'" \
69 "'${configurable-http-proxy}/bin/configurable-http-proxy'"
74 npmHooks.npmConfigHook
100 ++ lib.optionals (pythonOlder "3.10") [
105 nativeCheckInputs = [
113 # require pytest-asyncio<0.23
114 # https://github.com/jupyterhub/jupyterhub/pull/4663
115 (pytest-asyncio.overrideAttrs (
118 src = fetchFromGitHub {
119 inherit (prev.src) owner repo;
120 rev = "refs/tags/v${final.version}";
121 hash = "sha256-AVVvdo/CDF9IU6l779sLc7wKz5h3kzMttdDNTPLYxtQ=";
131 export PATH=$out/bin:$PATH;
135 # Tries to install older versions through pip
137 # Testcase fails to find requests import
138 "test_external_service"
139 # Attempts to do TLS connection
140 "test_connection_notebook_wrong_certs"
141 # AttributeError: 'coroutine' object...
143 "test_invalid_events"
144 "test_user_group_roles"
147 disabledTestPaths = [
148 # Not testing with a running instance
149 # AttributeError: 'coroutine' object has no attribute 'db'
151 "jupyterhub/tests/browser/test_browser.py"
152 "jupyterhub/tests/test_api.py"
153 "jupyterhub/tests/test_auth_expiry.py"
154 "jupyterhub/tests/test_auth.py"
155 "jupyterhub/tests/test_metrics.py"
156 "jupyterhub/tests/test_named_servers.py"
157 "jupyterhub/tests/test_orm.py"
158 "jupyterhub/tests/test_pages.py"
159 "jupyterhub/tests/test_proxy.py"
160 "jupyterhub/tests/test_scopes.py"
161 "jupyterhub/tests/test_services_auth.py"
162 "jupyterhub/tests/test_singleuser.py"
163 "jupyterhub/tests/test_spawner.py"
164 "jupyterhub/tests/test_user.py"
168 description = "Serves multiple Jupyter notebook instances";
169 homepage = "https://github.com/jupyterhub/jupyterhub";
170 changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/reference/changelog.md";
171 license = licenses.bsd3;
172 maintainers = teams.jupyter.members;
173 # darwin: E OSError: dlopen(/nix/store/43zml0mlr17r5jsagxr00xxx91hz9lky-openpam-20170430/lib/libpam.so, 6): image not found
174 broken = stdenv.hostPlatform.isDarwin;