about summary refs log tree commit diff
path: root/pkgs/development/python-modules/geoip2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/geoip2/default.nix')
-rw-r--r--pkgs/development/python-modules/geoip2/default.nix49
1 files changed, 25 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/geoip2/default.nix b/pkgs/development/python-modules/geoip2/default.nix
index 4a0bec9476e8..d7440c5c43e8 100644
--- a/pkgs/development/python-modules/geoip2/default.nix
+++ b/pkgs/development/python-modules/geoip2/default.nix
@@ -1,17 +1,19 @@
-{ lib
-, aiohttp
-, buildPythonPackage
-, fetchPypi
-, setuptools
-, setuptools-scm
-, maxminddb
-, mocket
-, pytestCheckHook
-, pythonAtLeast
-, pythonOlder
-, requests
-, requests-mock
-, urllib3
+{
+  lib,
+  aiohttp,
+  buildPythonPackage,
+  fetchPypi,
+  h11,
+  maxminddb,
+  mocket,
+  pytestCheckHook,
+  pythonAtLeast,
+  pythonOlder,
+  requests-mock,
+  requests,
+  setuptools-scm,
+  setuptools,
+  urllib3,
 }:
 
 buildPythonPackage rec {
@@ -39,27 +41,26 @@ buildPythonPackage rec {
   ];
 
   nativeCheckInputs = [
+    h11
     mocket
     requests-mock
     pytestCheckHook
   ];
 
-  pythonImportsCheck = [
-    "geoip2"
-  ];
+  pythonImportsCheck = [ "geoip2" ];
 
-  disabledTests = lib.optionals (pythonAtLeast "3.11") [
-    # https://github.com/maxmind/GeoIP2-python/pull/136
-    "TestAsyncClient"
-  ] ++ lib.optionals (pythonAtLeast "3.10") [
-    "test_request"
-  ];
+  disabledTests =
+    lib.optionals (pythonAtLeast "3.10") [
+      # https://github.com/maxmind/GeoIP2-python/pull/136
+      "TestAsyncClient"
+    ]
+    ++ lib.optionals (pythonAtLeast "3.10") [ "test_request" ];
 
   meta = with lib; {
     description = "GeoIP2 webservice client and database reader";
     homepage = "https://github.com/maxmind/GeoIP2-python";
     changelog = "https://github.com/maxmind/GeoIP2-python/blob/v${version}/HISTORY.rst";
     license = licenses.asl20;
-    maintainers = with maintainers; [ ];
+    maintainers = [ ];
   };
 }