depot/third_party/nixpkgs/pkgs/development/python-modules/googlemaps/default.nix
Default email 727493fff0 Project import generated by Copybara.
GitOrigin-RevId: b839d4a8557adc80e522f674529e586ab2a88d23
2020-11-09 16:59:12 +01:00

34 lines
883 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub
, requests
, responses, pytestCheckHook, pytest, pytestcov, isPy27
}:
buildPythonPackage rec {
pname = "googlemaps";
version = "4.4.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "googlemaps";
repo = "google-maps-services-python";
rev = "v${version}";
sha256 = "DYhW1OGce/0gY7Jmwq6iM45PxLyXIYo4Cfg2u6Xuyg4=";
};
propagatedBuildInputs = [ requests ];
checkInputs = [ pytestCheckHook responses pytestcov ];
disabledTests = [
# touches network
"test_elevation_along_path_single"
"test_transit_without_time"
];
meta = with stdenv.lib; {
homepage = "https://github.com/googlemaps/google-maps-services-python";
description = "Python client library for Google Maps API Web Services";
license = licenses.asl20;
maintainers = with maintainers; [ Scriptkiddi ];
};
}