1{ lib, buildPythonPackage, fetchPypi, django }:
2
3buildPythonPackage rec {
4 pname = "django-ipware";
5 version = "2.1.0";
6
7 meta = {
8 description = "A Django application to retrieve user's IP address";
9 homepage = https://github.com/un33k/django-ipware;
10 license = lib.licenses.mit;
11 };
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "a7c7a8fd019dbdc9c357e6e582f65034e897572fc79a7e467674efa8aef9d00b";
16 };
17
18 propagatedBuildInputs = [ django ];
19
20 # 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.
21 doCheck = false;
22}