From fafe74f1574482f27f3c40a204008c5cea1fb9f3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Nov 2021 14:56:21 +0100 Subject: [PATCH 1/2] python3Packages.ritassist: init at 0.9.3 --- .../python-modules/ritassist/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/ritassist/default.nix diff --git a/pkgs/development/python-modules/ritassist/default.nix b/pkgs/development/python-modules/ritassist/default.nix new file mode 100644 index 000000000000..a23bb3df5dee --- /dev/null +++ b/pkgs/development/python-modules/ritassist/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, ciso8601 +, fetchPypi +, geopy +, pythonOlder +, requests +, sseclient +}: + +buildPythonPackage rec { + pname = "ritassist"; + version = "0.9.3"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "1JCKWb+3mdQYnL250Ml+kFkx6VAlBC7FL6XcQlQ+kC4="; + }; + + propagatedBuildInputs = [ + ciso8601 + geopy + requests + sseclient + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "ritassist" + ]; + + meta = with lib; { + description = "Python client to access RitAssist and FleetGO API"; + homepage = "https://github.com/depl0y/ritassist-py"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87b06b9eb148..52aa163a870b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8204,6 +8204,8 @@ in { rising = callPackage ../development/python-modules/rising { }; + ritassist = callPackage ../development/python-modules/ritassist { }; + rivet = toPythonModule (pkgs.rivet.override { python3 = python; }); From b1e3827e27a260a33d1fb0353e6865f417d1af0b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Nov 2021 14:58:43 +0100 Subject: [PATCH 2/2] 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 a84ad21775fc..7402938caf82 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -270,7 +270,7 @@ "fitbit" = ps: with ps; [ aiohttp-cors fitbit ]; "fixer" = ps: with ps; [ fixerio ]; "fjaraskupan" = ps: with ps; [ fjaraskupan ]; - "fleetgo" = ps: with ps; [ ]; # missing inputs: ritassist + "fleetgo" = ps: with ps; [ ritassist ]; "flexit" = ps: with ps; [ pymodbus ]; "flic" = ps: with ps; [ pyflic ]; "flick_electric" = ps: with ps; [ pyflick ];