2019-01-27 10:46:08 +00:00
{ stdenv
, buildPythonPackage
, fetchPypi , isPy27
, ldap , django_2_2
, mock
} :
buildPythonPackage rec {
pname = " d j a n g o - a u t h - l d a p " ;
2019-12-19 19:31:09 +00:00
version = " 2 . 1 . 0 " ;
2019-01-27 10:46:08 +00:00
disabled = isPy27 ;
src = fetchPypi {
inherit pname version ;
2019-12-19 19:31:09 +00:00
sha256 = " 5 f 4 8 2 3 2 c 8 5 d d f a 3 3 e 3 5 7 3 1 5 3 e 6 0 8 0 5 2 6 a c 2 e e f 5 e 7 e c 9 c f 4 2 b 5 c 4 b a 3 c 6 2 a f b 9 6 d " ;
2019-01-27 10:46:08 +00:00
} ;
propagatedBuildInputs = [ ldap django_2_2 ] ;
checkInputs = [ mock ] ;
# 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 ;
meta = with stdenv . lib ; {
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 " ;
homepage = https://github.com/django-auth-ldap/django-auth-ldap ;
license = licenses . bsd2 ;
maintainers = with maintainers ; [ mmai ] ;
platforms = platforms . linux ;
} ;
}