Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5fff64bc01df
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6423ac7bf0c3
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Oct 27, 2020

  1. Copy the full SHA
    1e3f24f View commit details

Commits on Nov 9, 2020

  1. Merge pull request #100027 from helsinki-systems/py_googlemaps

    pythonPackages.googlemaps: init at 4.4.2
    Lassulus authored Nov 9, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6423ac7 View commit details
Showing with 36 additions and 0 deletions.
  1. +34 −0 pkgs/development/python-modules/googlemaps/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/googlemaps/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ 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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -2530,6 +2530,8 @@ in {

google-i18n-address = callPackage ../development/python-modules/google-i18n-address { };

googlemaps = callPackage ../development/python-modules/googlemaps { };

google-music = callPackage ../development/python-modules/google-music { };

google-music-proto = callPackage ../development/python-modules/google-music-proto { };