Merge branch 'staging-next' into staging
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{ buildPythonPackage, lib, fetchPypi, isPy27
|
||||
, ipaddress
|
||||
, aiohttp
|
||||
, maxminddb
|
||||
, mock
|
||||
, mocket
|
||||
, requests
|
||||
, requests-mock
|
||||
}:
|
||||
@@ -9,16 +10,20 @@
|
||||
buildPythonPackage rec {
|
||||
version = "4.0.2";
|
||||
pname = "geoip2";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4afb5d899eac08444e461239c8afb165c90234adc0b5dc952792d9da74c9091b";
|
||||
};
|
||||
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user