1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 django, 6 python-ipware, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "django-ipware"; 12 version = "7.0.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-2exD0r983yFv7Y1JSghN61dhpUhgpTsudDRqTzhM/0c="; 20 }; 21 22 propagatedBuildInputs = [ 23 django 24 python-ipware 25 ]; 26 27 # 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. 28 doCheck = false; 29 30 # pythonImportsCheck fails with: 31 # 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. 32 33 meta = with lib; { 34 description = "Django application to retrieve user's IP address"; 35 homepage = "https://github.com/un33k/django-ipware"; 36 changelog = "https://github.com/un33k/django-ipware/blob/v${version}/CHANGELOG.md"; 37 license = licenses.mit; 38 maintainers = [ ]; 39 }; 40}