pythonPackages.geoip2: init at 2.9.0
This commit is contained in:
parent
4f1a6fde14
commit
79b015d9a2
29
pkgs/development/python-modules/geoip2/default.nix
Normal file
29
pkgs/development/python-modules/geoip2/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ buildPythonPackage, lib, fetchPypi, isPy27
|
||||
, ipaddress
|
||||
, maxminddb
|
||||
, mock
|
||||
, requests
|
||||
, requests-mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.9.0";
|
||||
pname = "geoip2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1w7cay5q6zawjzivqbwz5cqx1qbdjw6kbriccb7l46p7b39fkzzp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests maxminddb ]
|
||||
++ lib.optionals isPy27 [ ipaddress ];
|
||||
|
||||
checkInputs = [ requests-mock ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MaxMind GeoIP2 API";
|
||||
homepage = "https://www.maxmind.com/en/home";
|
||||
license = licenses.apsl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
@ -446,6 +446,8 @@ in {
|
||||
|
||||
genanki = callPackage ../development/python-modules/genanki { };
|
||||
|
||||
geoip2 = callPackage ../development/python-modules/geoip2 { };
|
||||
|
||||
gidgethub = callPackage ../development/python-modules/gidgethub { };
|
||||
|
||||
gin-config = callPackage ../development/python-modules/gin-config { };
|
||||
|
Loading…
Reference in New Issue
Block a user