diff --git a/pkgs/development/python-modules/django-ipware/default.nix b/pkgs/development/python-modules/django-ipware/default.nix new file mode 100644 index 000000000000..c4d993ac03ba --- /dev/null +++ b/pkgs/development/python-modules/django-ipware/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchPypi, django }: + +buildPythonPackage rec { + pname = "django-ipware"; + name = "${pname}-${version}"; + version = "1.1.6"; + + meta = { + description = "A Django application to retrieve user's IP address"; + homepage = https://github.com/un33k/django-ipware; + license = lib.licenses.mit; + }; + + src = fetchPypi { + inherit pname version; + sha256 = "00zah4g2h93nbsijz556j97v9qkn9sxcia1a2wrwdwnav2fhzack"; + }; + + propagatedBuildInputs = [ django ]; + + # 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. + doCheck = false; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a477991d9617..e4e3cd5261f6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8634,6 +8634,8 @@ in { django_guardian = callPackage ../development/python-modules/django_guardian.nix { }; + django-ipware = callPackage ../development/python-modules/django-ipware { }; + django_polymorphic = callPackage ../development/python-modules/django-polymorphic { }; django_tagging = callPackage ../development/python-modules/django_tagging { };