Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 949 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi, isPy27 4, ldap , django 5, mock 6}: 7 8buildPythonPackage rec { 9 pname = "django-auth-ldap"; 10 version = "2.1.0"; 11 disabled = isPy27; 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "5f48232c85ddfa33e3573153e6080526ac2eef5e7ec9cf42b5c4ba3c62afb96d"; 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 stdenv.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}