nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 30 lines 948 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.2.0"; 11 disabled = isPy27; 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "11af1773b08613339d2c3a0cec1308a4d563518f17b1719c3759994d0b4d04bf"; 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}