2021-02-05 17:12:51 +00:00
{ lib
2020-04-24 23:36:52 +00:00
, buildPythonPackage
2022-02-10 20:34:41 +00:00
, fetchPypi
, isPy27
, ldap
, django
2020-04-24 23:36:52 +00:00
, mock
2022-02-10 20:34:41 +00:00
, setuptools-scm
2020-04-24 23:36:52 +00:00
} :
buildPythonPackage rec {
pname = " d j a n g o - a u t h - l d a p " ;
2022-02-10 20:34:41 +00:00
version = " 4 . 0 . 0 " ;
2020-04-24 23:36:52 +00:00
disabled = isPy27 ;
src = fetchPypi {
inherit pname version ;
2022-02-10 20:34:41 +00:00
sha256 = " 2 7 6 f 7 9 e 6 2 4 c e 0 8 3 c e 1 3 f 1 6 1 3 8 7 f 6 5 f f 1 c 0 e f e 8 3 e f 8 a 4 2 f 2 b 9 8 3 0 d 4 3 3 1 7 b 1 5 2 3 9 " ;
2020-04-24 23:36:52 +00:00
} ;
2022-02-10 20:34:41 +00:00
nativeBuildInputs = [ setuptools-scm ] ;
2020-09-25 04:45:31 +00:00
propagatedBuildInputs = [ ldap django ] ;
2022-02-10 20:34:41 +00:00
2020-09-25 04:45:31 +00:00
checkInputs = [ mock ] ;
2020-04-24 23:36:52 +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-08-27 14:25:00 +00:00
pythonImportsCheck = [ " d j a n g o _ a u t h _ l d a p " ] ;
2021-01-15 22:18:51 +00:00
meta = with lib ; {
2020-04-24 23:36:52 +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 " ;
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 " ;
license = licenses . bsd2 ;
maintainers = with maintainers ; [ mmai ] ;
platforms = platforms . linux ;
} ;
}