2019-01-27 11:46:08 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi , isPy27
2020-01-20 13:46:17 +01:00
, ldap , django
2019-01-27 11:46:08 +01:00
, mock
} :
buildPythonPackage rec {
pname = " d j a n g o - a u t h - l d a p " ;
2020-04-06 18:49:54 +02:00
version = " 2 . 1 . 1 " ;
2019-01-27 11:46:08 +01:00
disabled = isPy27 ;
src = fetchPypi {
inherit pname version ;
2020-04-06 18:49:54 +02:00
sha256 = " 1 j 1 f w i n b k r 4 k h n 9 i 8 6 9 r 2 2 j f d g w 2 k l i 0 j q r z 5 s h y d 3 6 j l l s v r f z s " ;
2019-01-27 11:46:08 +01:00
} ;
2020-01-20 13:46:17 +01:00
propagatedBuildInputs = [ ldap django ] ;
2019-01-27 11:46:08 +01:00
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 " ;
2020-04-06 18:49:54 +02: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 11:46:08 +01:00
license = licenses . bsd2 ;
maintainers = with maintainers ; [ mmai ] ;
platforms = platforms . linux ;
} ;
}