Skip to content

Commit 5478518

Browse files
committed
python312Packages.jupyterhub-ldapauthenticator: 1.3.2 -> 2.0.1
Diff: jupyterhub/ldapauthenticator@1.3.2...2.0.1 Changelog: https://github.com/jupyterhub/ldapauthenticator/blob/2.0.1/CHANGELOG.md
1 parent 225a727 commit 5478518

File tree

1 file changed

+29
-9
lines changed
  • pkgs/development/python-modules/jupyterhub-ldapauthenticator

1 file changed

+29
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,52 @@
11
{
22
lib,
33
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
46
jupyterhub,
57
ldap3,
6-
fetchPypi,
8+
traitlets,
9+
pytestCheckHook,
10+
pytest-asyncio,
711
}:
812

913
buildPythonPackage rec {
1014
pname = "jupyterhub-ldapauthenticator";
11-
version = "1.3.2";
12-
format = "setuptools";
15+
version = "2.0.1";
16+
pyproject = true;
1317

14-
src = fetchPypi {
15-
inherit pname version;
16-
sha256 = "758081bbdb28b26313bb18c9d8aa2b8fcdc9162e4d3ab196c626567e64f1ab8b";
18+
src = fetchFromGitHub {
19+
owner = "jupyterhub";
20+
repo = "ldapauthenticator";
21+
rev = "refs/tags/${version}";
22+
hash = "sha256-pb1d0dqu3VGCsuibpYgncbqCM9fz09yyoKGcKb14f4k=";
1723
};
1824

19-
# No tests implemented
20-
doCheck = false;
25+
build-system = [ setuptools ];
2126

22-
propagatedBuildInputs = [
27+
dependencies = [
2328
jupyterhub
2429
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"
2544
];
2645

2746
meta = with lib; {
2847
description = "Simple LDAP Authenticator Plugin for JupyterHub";
2948
homepage = "https://github.com/jupyterhub/ldapauthenticator";
49+
changelog = "https://github.com/jupyterhub/ldapauthenticator/blob/${version}/CHANGELOG.md";
3050
license = licenses.bsd3;
3151
};
3252
}

0 commit comments

Comments
 (0)