Skip to content

Commit

Permalink
python3Packages.geoip2: 3.0.0 -> 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored and Jon committed Aug 18, 2020
1 parent e157891 commit d33659e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkgs/development/python-modules/geoip2/default.nix
@@ -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";
Expand Down

0 comments on commit d33659e

Please sign in to comment.