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