1{ lib, buildPythonPackage, fetchPypi, django }: 2 3buildPythonPackage rec { 4 pname = "django-ipware"; 5 version = "4.0.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1294f916f3b3475e40e1b0ec1bd320aa2397978eae672721c81cbc2ed517e9ee"; 10 }; 11 12 propagatedBuildInputs = [ django ]; 13 14 # django.core.exceptions.ImproperlyConfigured: Requested setting IPWARE_TRUSTED_PROXY_LIST, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. 15 doCheck = false; 16 17 # pythonImportsCheck fails with: 18 # django.core.exceptions.ImproperlyConfigured: Requested setting IPWARE_META_PRECEDENCE_ORDER, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. 19 20 meta = with lib; { 21 description = "A Django application to retrieve user's IP address"; 22 homepage = "https://github.com/un33k/django-ipware"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ ]; 25 }; 26}