diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-19 09:21:50 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-03-08 10:16:44 -0800 |
commit | 8c36da303ed8566bc6d46b3e416dacc139ede2ce (patch) | |
tree | f2281bf765f573393f35718211b1f618d4c6b04c /pkgs/development/python-modules/geoip2 | |
parent | ecce29eba2206e4fc8db91c61d5e6272583ece9e (diff) |
python39Packages.geoip2: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/geoip2')
-rw-r--r-- | pkgs/development/python-modules/geoip2/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/geoip2/default.nix b/pkgs/development/python-modules/geoip2/default.nix index 05a73c3167597..c0e6580e8a940 100644 --- a/pkgs/development/python-modules/geoip2/default.nix +++ b/pkgs/development/python-modules/geoip2/default.nix @@ -1,15 +1,16 @@ -{ buildPythonPackage, lib, fetchPypi, isPy27 +{ buildPythonPackage, lib, fetchPypi, pythonOlder , aiohttp , maxminddb , mocket , requests , requests-mock +, pytestCheckHook }: buildPythonPackage rec { version = "4.1.0"; pname = "geoip2"; - disabled = isPy27; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; @@ -22,11 +23,17 @@ buildPythonPackage rec { propagatedBuildInputs = [ aiohttp requests maxminddb ]; - checkInputs = [ mocket requests-mock ]; + checkInputs = [ + mocket + requests-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "geoip2" ]; meta = with lib; { - description = "MaxMind GeoIP2 API"; - homepage = "https://www.maxmind.com/en/home"; + description = "Python client for GeoIP2 webservice client and database reader"; + homepage = "https://github.com/maxmind/GeoIP2-python"; license = licenses.asl20; maintainers = with maintainers; [ ]; }; |