1{ lib 2, buildPythonPackage 3, fetchPypi, isPy27 4, ldap , django 5, mock 6}: 7 8buildPythonPackage rec { 9 pname = "django-auth-ldap"; 10 version = "3.0.0"; 11 disabled = isPy27; 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1f2d5c562d9ba9a5e9a64099ae9798e1a63840a11afe4d1c4a9c74121f066eaa"; 15 }; 16 17 propagatedBuildInputs = [ ldap django ]; 18 checkInputs = [ mock ]; 19 20 # 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 21 doCheck = false; 22 23 pythonImportsCheck = [ "django_auth_ldap" ]; 24 25 meta = with lib; { 26 description = "Django authentication backend that authenticates against an LDAP service"; 27 homepage = "https://github.com/django-auth-ldap/django-auth-ldap"; 28 license = licenses.bsd2; 29 maintainers = with maintainers; [ mmai ]; 30 platforms = platforms.linux; 31 }; 32}