2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-11-12 18:11:54 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, geographiclib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geopy";
|
2020-05-23 19:24:35 +00:00
|
|
|
version = "1.22.0";
|
2019-11-12 18:11:54 +00:00
|
|
|
|
|
|
|
disabled = !isPy27; # only Python 2.7
|
|
|
|
doCheck = false; # Needs network access
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ geographiclib ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-23 19:24:35 +00:00
|
|
|
sha256 = "0jypkaqlbyr8icqypwm23lzsvq7flakp3a3nqr8ib5fmd0fzsq7q";
|
2019-11-12 18:11:54 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-12 18:11:54 +00:00
|
|
|
homepage = "https://github.com/geopy/geopy";
|
|
|
|
description = "Python Geocoding Toolbox";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [GuillaumeDesforges];
|
|
|
|
};
|
|
|
|
}
|