1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 jupyterhub, 7 ldap3, 8 traitlets, 9 pytestCheckHook, 10 pytest-asyncio, 11}: 12 13buildPythonPackage rec { 14 pname = "jupyterhub-ldapauthenticator"; 15 version = "2.0.2"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "jupyterhub"; 20 repo = "ldapauthenticator"; 21 tag = version; 22 hash = "sha256-xixgry/++E6RimB8wo1NF8SsfzxKL1ZlNQVrlBhQ674="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 jupyterhub 29 ldap3 30 traitlets 31 ]; 32 33 pythonImportsCheck = [ "ldapauthenticator" ]; 34 35 nativeCheckInputs = [ 36 pytest-asyncio 37 pytestCheckHook 38 ]; 39 40 disabledTests = [ 41 # touch the socket 42 "test_allow_config" 43 "test_ldap_auth" 44 ]; 45 46 meta = with lib; { 47 description = "Simple LDAP Authenticator Plugin for JupyterHub"; 48 homepage = "https://github.com/jupyterhub/ldapauthenticator"; 49 changelog = "https://github.com/jupyterhub/ldapauthenticator/blob/${version}/CHANGELOG.md"; 50 license = licenses.bsd3; 51 }; 52}