@@ -1,15 +1,16 @@
1−{ buildPythonPackage, lib, fetchPypi, isPy27
1+{ buildPythonPackage, lib, fetchPypi, pythonOlder
22, aiohttp
33, maxminddb
44, mocket
55, requests
66, requests-mock
7+, pytestCheckHook
78}:
89
910buildPythonPackage rec {
1011 version = "4.1.0";
1112 pname = "geoip2";
12− disabled = isPy27;
13+ disabled = pythonOlder "3.6";
1314
1415 src = fetchPypi {
1516 inherit pname version;
@@ -22,11 +23,17 @@ buildPythonPackage rec {
2223
2324 propagatedBuildInputs = [ aiohttp requests maxminddb ];
2425
25− checkInputs = [ mocket requests-mock ];
26+ checkInputs = [
27+ mocket
28+ requests-mock
29+ pytestCheckHook
30+ ];
31+
32+ pythonImportsCheck = [ "geoip2" ];
2633
2734 meta = with lib; {
28− description = "MaxMind GeoIP2 API";
29− homepage = "https://www.maxmind.com/en/home";
35+ description = "Python client for GeoIP2 webservice client and database reader";
36+ homepage = "https://github.com/maxmind/GeoIP2-python";
3037 license = licenses.asl20;
3138 maintainers = with maintainers; [ ];
3239 };