Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 66 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, aiohttp, buildPythonPackage, fetchPypi, h11, maxminddb, pytestCheckHook, pythonAtLeast, pythonOlder, requests-mock, pytest-httpserver, requests, setuptools-scm, setuptools, urllib3,}:
buildPythonPackage rec { pname = "geoip2"; version = "5.0.1"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-kK+LbTaH877yUfJwitAXsw1ifRFEwAQOq8TJAXqAfYY="; };
build-system = [ setuptools setuptools-scm ];
propagatedBuildInputs = [ aiohttp maxminddb requests urllib3 ];
nativeCheckInputs = [ h11 requests-mock pytestCheckHook pytest-httpserver ];
pythonImportsCheck = [ "geoip2" ];
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 = [ ]; };}