Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 938 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi, isPy27 4, ldap , django 5, mock 6}: 7 8buildPythonPackage rec { 9 pname = "django-auth-ldap"; 10 version = "2.3.0"; 11 disabled = isPy27; 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "5894317122a086c9955ed366562869a81459cf6b663636b152857bb5d3a0a3b7"; 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 meta = with lib; { 24 description = "Django authentication backend that authenticates against an LDAP service"; 25 homepage = "https://github.com/django-auth-ldap/django-auth-ldap"; 26 license = licenses.bsd2; 27 maintainers = with maintainers; [ mmai ]; 28 platforms = platforms.linux; 29 }; 30}