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