Files
nixpkgs/pkgs/development/python-modules/jupyterhub-ldapauthenticator/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1017 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
jupyterhub,
ldap3,
traitlets,
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "jupyterhub-ldapauthenticator";
version = "2.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyterhub";
repo = "ldapauthenticator";
tag = version;
hash = "sha256-xixgry/++E6RimB8wo1NF8SsfzxKL1ZlNQVrlBhQ674=";
};
build-system = [ setuptools ];
dependencies = [
jupyterhub
ldap3
traitlets
];
pythonImportsCheck = [ "ldapauthenticator" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# touch the socket
"test_allow_config"
"test_ldap_auth"
];
meta = {
description = "Simple LDAP Authenticator Plugin for JupyterHub";
homepage = "https://github.com/jupyterhub/ldapauthenticator";
changelog = "https://github.com/jupyterhub/ldapauthenticator/blob/${version}/CHANGELOG.md";
license = lib.licenses.bsd3;
};
}