2021-01-25 00:26:54 -08:00
{ lib
2019-01-27 02:46:08 -08:00
, buildPythonPackage
, fetchPypi , isPy27
2020-08-24 19:07:09 -07:00
, ldap , django
2019-01-27 02:46:08 -08:00
, mock
} :
buildPythonPackage rec {
pname = " d j a n g o - a u t h - l d a p " ;
2021-03-12 08:25:47 -08:00
version = " 2 . 3 . 0 " ;
2019-01-27 02:46:08 -08:00
disabled = isPy27 ;
src = fetchPypi {
inherit pname version ;
2021-03-12 08:25:47 -08:00
sha256 = " 5 8 9 4 3 1 7 1 2 2 a 0 8 6 c 9 9 5 5 e d 3 6 6 5 6 2 8 6 9 a 8 1 4 5 9 c f 6 b 6 6 3 6 3 6 b 1 5 2 8 5 7 b b 5 d 3 a 0 a 3 b 7 " ;
2019-01-27 02:46:08 -08:00
} ;
2020-08-24 19:07:09 -07:00
propagatedBuildInputs = [ ldap django ] ;
checkInputs = [ mock ] ;
2019-01-27 02:46:08 -08:00
# django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
doCheck = false ;
2021-01-10 23:54:33 -08:00
meta = with lib ; {
2019-01-27 02:46:08 -08:00
description = " D j a n g o a u t h e n t i c a t i o n b a c k e n d t h a t a u t h e n t i c a t e s a g a i n s t a n L D A P s e r v i c e " ;
2020-04-06 09:49:54 -07:00
homepage = " h t t p s : / / g i t h u b . c o m / d j a n g o - a u t h - l d a p / d j a n g o - a u t h - l d a p " ;
2019-01-27 02:46:08 -08:00
license = licenses . bsd2 ;
maintainers = with maintainers ; [ mmai ] ;
platforms = platforms . linux ;
} ;
}