2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, geographiclib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geopy";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "1.22.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = !isPy27; # only Python 2.7
|
|
|
|
doCheck = false; # Needs network access
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ geographiclib ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0jypkaqlbyr8icqypwm23lzsvq7flakp3a3nqr8ib5fmd0fzsq7q";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/geopy/geopy";
|
|
|
|
description = "Python Geocoding Toolbox";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [GuillaumeDesforges];
|
|
|
|
};
|
|
|
|
}
|