2021-01-11 07:54:33 +00:00
{ lib , stdenv
2019-01-27 10:46:08 +00:00
, buildPythonPackage
, fetchPypi , isPy27
2020-08-25 03:07:09 +01:00
, ldap , django
2019-01-27 10:46:08 +00:00
, mock
} :
buildPythonPackage rec {
pname = " d j a n g o - a u t h - l d a p " ;
2020-06-06 07:47:04 +01:00
version = " 2 . 2 . 0 " ;
2019-01-27 10:46:08 +00:00
disabled = isPy27 ;
src = fetchPypi {
inherit pname version ;
2020-06-06 07:47:04 +01:00
sha256 = " 1 1 a f 1 7 7 3 b 0 8 6 1 3 3 3 9 d 2 c 3 a 0 c e c 1 3 0 8 a 4 d 5 6 3 5 1 8 f 1 7 b 1 7 1 9 c 3 7 5 9 9 9 4 d 0 b 4 d 0 4 b f " ;
2019-01-27 10:46:08 +00:00
} ;
2020-08-25 03:07:09 +01:00
propagatedBuildInputs = [ ldap django ] ;
checkInputs = [ mock ] ;
2019-01-27 10:46:08 +00: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-11 07:54:33 +00:00
meta = with lib ; {
2019-01-27 10:46:08 +00: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 17:49:54 +01: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 10:46:08 +00:00
license = licenses . bsd2 ;
maintainers = with maintainers ; [ mmai ] ;
platforms = platforms . linux ;
} ;
}