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 number Diff line number Diff line change 1
1
{
2
2
lib ,
3
3
buildPythonPackage ,
4
+ fetchFromGitHub ,
5
+ setuptools ,
4
6
jupyterhub ,
5
7
ldap3 ,
6
- fetchPypi ,
8
+ traitlets ,
9
+ pytestCheckHook ,
10
+ pytest-asyncio ,
7
11
} :
8
12
9
13
buildPythonPackage rec {
10
14
pname = "jupyterhub-ldapauthenticator" ;
11
- version = "1.3.2 " ;
12
- format = "setuptools" ;
15
+ version = "2.0.1 " ;
16
+ pyproject = true ;
13
17
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=" ;
17
23
} ;
18
24
19
- # No tests implemented
20
- doCheck = false ;
25
+ build-system = [ setuptools ] ;
21
26
22
- propagatedBuildInputs = [
27
+ dependencies = [
23
28
jupyterhub
24
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"
25
44
] ;
26
45
27
46
meta = with lib ; {
28
47
description = "Simple LDAP Authenticator Plugin for JupyterHub" ;
29
48
homepage = "https://github.com/jupyterhub/ldapauthenticator" ;
49
+ changelog = "https://github.com/jupyterhub/ldapauthenticator/blob/${ version } /CHANGELOG.md" ;
30
50
license = licenses . bsd3 ;
31
51
} ;
32
52
}
You can’t perform that action at this time.
0 commit comments