26 lines
1.1 KiB
Nix
26 lines
1.1 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, django }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-ipware";
|
|
version = "4.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1294f916f3b3475e40e1b0ec1bd320aa2397978eae672721c81cbc2ed517e9ee";
|
|
};
|
|
|
|
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;
|
|
|
|
# pythonImportsCheck fails with:
|
|
# 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.
|
|
|
|
meta = with lib; {
|
|
description = "A Django application to retrieve user's IP address";
|
|
homepage = "https://github.com/un33k/django-ipware";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|