2019-11-12 18:11:54 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, geographiclib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geopy";
|
2020-05-23 20:24:35 +01: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 20:24:35 +01:00
|
|
|
sha256 = "0jypkaqlbyr8icqypwm23lzsvq7flakp3a3nqr8ib5fmd0fzsq7q";
|
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];
|
|
|
|
};
|
|
|
|
}
|