1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, geographiclib
6}:
7
8buildPythonPackage rec {
9 pname = "geopy";
10 version = "1.21.0";
11
12 disabled = !isPy27; # only Python 2.7
13 doCheck = false; # Needs network access
14
15 propagatedBuildInputs = [ geographiclib ];
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "1p1sgy2p59j0297bp7c82b45bx4d3i1p4kvbgf89c9i0llyb80nw";
20 };
21
22 meta = with stdenv.lib; {
23 homepage = "https://github.com/geopy/geopy";
24 description = "Python Geocoding Toolbox";
25 license = licenses.mit;
26 maintainers = with maintainers; [GuillaumeDesforges];
27 };
28}