python3Packages.geoip2: 3.0.0 -> 4.0.2
This commit is contained in:
parent
e157891bc7
commit
d33659e945
@ -1,24 +1,29 @@
|
||||
{ buildPythonPackage, lib, fetchPypi, isPy27
|
||||
, ipaddress
|
||||
, aiohttp
|
||||
, maxminddb
|
||||
, mock
|
||||
, mocket
|
||||
, requests
|
||||
, requests-mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.0.0";
|
||||
version = "4.0.2";
|
||||
pname = "geoip2";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1q1ciqqd0qjkpgwsg9fws8wcqchkcq84gv2g4q3xgh2lpj3yjsaq";
|
||||
sha256 = "06q9r5sdmncj4yaxrdf0mls05jb5n6pwhf8j8r74825cks4mvysa";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests maxminddb ]
|
||||
++ lib.optionals isPy27 [ ipaddress ];
|
||||
patchPhase = ''
|
||||
substituteInPlace requirements.txt --replace "requests>=2.24.0,<3.0.0" "requests"
|
||||
'';
|
||||
|
||||
checkInputs = [ requests-mock ];
|
||||
propagatedBuildInputs = [ aiohttp requests maxminddb ];
|
||||
|
||||
checkInputs = [ mocket requests-mock ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MaxMind GeoIP2 API";
|
||||
|
Loading…
Reference in New Issue
Block a user