1{ lib, buildPythonPackage, fetchPypi, django }: 2 3buildPythonPackage rec { 4 pname = "django-ipware"; 5 version = "4.0.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "602a58325a4808bd19197fef2676a0b2da2df40d0ecf21be414b2ff48c72ad05"; 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}