01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
51 lines
997 B
Nix
51 lines
997 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "googlemaps";
|
|
version = "4.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googlemaps";
|
|
repo = "google-maps-services-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qn98b7oTU9/u0+EJ4OTOksLquJiWl/od9m498UuFiwo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-cov
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
disabledTests = [
|
|
# touches network
|
|
"test_elevation_along_path_single"
|
|
"test_transit_without_time"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"googlemaps"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python client library for Google Maps API Web Services";
|
|
homepage = "https://github.com/googlemaps/google-maps-services-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|