2019-11-12 18:11:54 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, geographiclib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geopy";
|
2020-02-09 12:26:08 +00:00
|
|
|
version = "1.21.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-02-09 12:26:08 +00:00
|
|
|
sha256 = "1p1sgy2p59j0297bp7c82b45bx4d3i1p4kvbgf89c9i0llyb80nw";
|
2019-11-12 18:11:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/geopy/geopy";
|
|
|
|
description = "Python Geocoding Toolbox";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [GuillaumeDesforges];
|
|
|
|
};
|
|
|
|
}
|