From 9ac537d08b9fe91575518868f5e0645e9e31fc29 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 29 Sep 2021 15:52:08 +0200 Subject: [PATCH 1/3] python3Packages.WazeRouteCalculator: 0.12 -> 0.13 --- .../python-modules/WazeRouteCalculator/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/WazeRouteCalculator/default.nix b/pkgs/development/python-modules/WazeRouteCalculator/default.nix index 6da500413f0e..3f31bb1648d8 100644 --- a/pkgs/development/python-modules/WazeRouteCalculator/default.nix +++ b/pkgs/development/python-modules/WazeRouteCalculator/default.nix @@ -3,11 +3,11 @@ buildPythonPackage rec { pname = "WazeRouteCalculator"; - version = "0.12"; + version = "0.13"; src = fetchPypi { inherit pname version; - sha256 = "889fe753a530b258bd23def65616666d32c48d93ad8ed211dadf2ed9afcec65b"; + sha256 = "sha256-Ex9yglaJkk0+Uo3Y+xpimb5boXz+4QdbJS2O75U6dUg="; }; propagatedBuildInputs = [ requests ]; From fcceea469fd8086e52265d958d0f71d20a6ba217 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 29 Sep 2021 16:20:27 +0200 Subject: [PATCH 2/3] python3Packages.wazeroutecalculator: rename --- .../default.nix | 20 +++++++++++++------ pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) rename pkgs/development/python-modules/{WazeRouteCalculator => wazeroutecalculator}/default.nix (60%) diff --git a/pkgs/development/python-modules/WazeRouteCalculator/default.nix b/pkgs/development/python-modules/wazeroutecalculator/default.nix similarity index 60% rename from pkgs/development/python-modules/WazeRouteCalculator/default.nix rename to pkgs/development/python-modules/wazeroutecalculator/default.nix index 3f31bb1648d8..dd8409624648 100644 --- a/pkgs/development/python-modules/WazeRouteCalculator/default.nix +++ b/pkgs/development/python-modules/wazeroutecalculator/default.nix @@ -1,24 +1,32 @@ -{ lib, buildPythonPackage, fetchPypi -, requests }: +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: buildPythonPackage rec { - pname = "WazeRouteCalculator"; + pname = "wazeroutecalculator"; version = "0.13"; src = fetchPypi { - inherit pname version; + pname = "WazeRouteCalculator"; + inherit version; sha256 = "sha256-Ex9yglaJkk0+Uo3Y+xpimb5boXz+4QdbJS2O75U6dUg="; }; - propagatedBuildInputs = [ requests ]; + propagatedBuildInputs = [ + requests + ]; # there are no tests doCheck = false; + pythonImportsCheck = [ "WazeRouteCalculator" ]; + meta = with lib; { description = "Calculate actual route time and distance with Waze API"; homepage = "https://github.com/kovacsbalu/WazeRouteCalculator"; - license = licenses.gpl3; + license = licenses.gpl3Only; maintainers = with maintainers; [ peterhoeg ]; }; } diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 0c375a664999..039b921ee982 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -79,6 +79,7 @@ mapAliases ({ sphinxcontrib_plantuml = sphinxcontrib-plantuml; topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22 tvnamer = throw "python3Packages.tvnamer was moved to tvnamer"; # 2021-07-05 + WazeRouteCalculator = wazeroutecalculator; # 2021-09-29 websocket_client = websocket-client; zc_buildout221 = zc_buildout; # added 2021-07-21 }) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 686dd8c0f363..a2394b188735 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9527,7 +9527,7 @@ in { wavedrom = callPackage ../development/python-modules/wavedrom { }; - WazeRouteCalculator = callPackage ../development/python-modules/WazeRouteCalculator { }; + wazeroutecalculator = callPackage ../development/python-modules/wazeroutecalculator { }; wcmatch = callPackage ../development/python-modules/wcmatch { }; From db58f62dab8fdba1ca31def9ed92313b6ff70562 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 29 Sep 2021 16:22:01 +0200 Subject: [PATCH 3/3] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 39a5ed3e2bea..05bc351a029a 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -961,7 +961,7 @@ "waterfurnace" = ps: with ps; [ waterfurnace ]; "watson_iot" = ps: with ps; [ ]; # missing inputs: ibmiotf "watson_tts" = ps: with ps; [ ibm-watson ]; - "waze_travel_time" = ps: with ps; [ WazeRouteCalculator ]; + "waze_travel_time" = ps: with ps; [ wazeroutecalculator ]; "weather" = ps: with ps; [ ]; "webhook" = ps: with ps; [ aiohttp-cors ]; "webostv" = ps: with ps; [ aiopylgtv ];