evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / django-ipware / default.nix
blobb778e0a93d7d0934a7f00fc980ffb0e45b84d065
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   django,
6   python-ipware,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "django-ipware";
12   version = "7.0.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-2exD0r983yFv7Y1JSghN61dhpUhgpTsudDRqTzhM/0c=";
20   };
22   propagatedBuildInputs = [ django python-ipware ];
24   # 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.
25   doCheck = false;
27   # pythonImportsCheck fails with:
28   # 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.
30   meta = with lib; {
31     description = "Django application to retrieve user's IP address";
32     homepage = "https://github.com/un33k/django-ipware";
33     changelog = "https://github.com/un33k/django-ipware/blob/v${version}/CHANGELOG.md";
34     license = licenses.mit;
35     maintainers = [ ];
36   };