From c3d7b5cfc053b4f94cd25e8352db353afd50bdeb Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 22 Aug 2021 20:21:47 +0000 Subject: [PATCH 1/2] python38Packages.django-ipware: 3.0.7 -> 4.0.0 --- pkgs/development/python-modules/django-ipware/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/django-ipware/default.nix b/pkgs/development/python-modules/django-ipware/default.nix index 54c3bf7ceed0..50a4dcd829f9 100644 --- a/pkgs/development/python-modules/django-ipware/default.nix +++ b/pkgs/development/python-modules/django-ipware/default.nix @@ -2,7 +2,7 @@ buildPythonPackage rec { pname = "django-ipware"; - version = "3.0.7"; + version = "4.0.0"; meta = { description = "A Django application to retrieve user's IP address"; @@ -12,7 +12,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "753f8214a16ccaac54ea977349a96e37b582a28a54065e00c1c46d530862c85e"; + sha256 = "1294f916f3b3475e40e1b0ec1bd320aa2397978eae672721c81cbc2ed517e9ee"; }; propagatedBuildInputs = [ django ]; From 62c18ce480d453784b1e5fcb4a523df4a25daff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 26 Aug 2021 14:55:10 +0200 Subject: [PATCH 2/2] python39Packages.django-ipware: update meta, comment why imports check can't be done --- .../python-modules/django-ipware/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/django-ipware/default.nix b/pkgs/development/python-modules/django-ipware/default.nix index 50a4dcd829f9..d773c1490bcc 100644 --- a/pkgs/development/python-modules/django-ipware/default.nix +++ b/pkgs/development/python-modules/django-ipware/default.nix @@ -4,12 +4,6 @@ buildPythonPackage rec { pname = "django-ipware"; version = "4.0.0"; - 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 = "1294f916f3b3475e40e1b0ec1bd320aa2397978eae672721c81cbc2ed517e9ee"; @@ -19,4 +13,14 @@ buildPythonPackage rec { # 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; [ ]; + }; }