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