19 buildPythonPackage rec {
24 disabled = pythonOlder "3.6";
27 inherit pname version;
28 hash = "sha256-3ZzBgLfUFyQkDqSB1dU5FJ5lsjT2QoKyMbkXB5SprDU=";
36 propagatedBuildInputs = [
50 pythonImportsCheck = [ "geoip2" ];
53 lib.optionals (pythonAtLeast "3.10") [
54 # https://github.com/maxmind/GeoIP2-python/pull/136
57 ++ lib.optionals (pythonAtLeast "3.10") [ "test_request" ];
60 description = "GeoIP2 webservice client and database reader";
61 homepage = "https://github.com/maxmind/GeoIP2-python";
62 changelog = "https://github.com/maxmind/GeoIP2-python/blob/v${version}/HISTORY.rst";
63 license = licenses.asl20;