From 9568aa18084a28b16a226baba917eac1d4e2cb6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Feb 2022 17:21:56 +0000 Subject: [PATCH 1/2] python3Packages.pysignalclirestapi: init at 0.3.18 --- .../pysignalclirestapi/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/pysignalclirestapi/default.nix diff --git a/pkgs/development/python-modules/pysignalclirestapi/default.nix b/pkgs/development/python-modules/pysignalclirestapi/default.nix new file mode 100644 index 000000000000..023b6dde3eb8 --- /dev/null +++ b/pkgs/development/python-modules/pysignalclirestapi/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +, future +}: + +buildPythonPackage rec { + pname = "pysignalclirestapi"; + version = "0.3.18"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "bbernhard"; + repo = "pysignalclirestapi"; + rev = version; + hash = "sha256-BF4BmnQVfrj7f0N+TN/d7GNuDTbDQfwsCkUn2pVmMWo="; + }; + + propagatedBuildInputs = [ + requests + future + ]; + + # upstream has no tests + doCheck = false; + + pythonImportsCheck = [ "pysignalclirestapi" ]; + + meta = with lib; { + description = "Small python library for the Signal Cli REST API"; + homepage = "https://github.com/bbernhard/pysignalclirestapi"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d96cb75dd289..a7f59aea3b45 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7607,6 +7607,8 @@ in { pysideTools = callPackage ../development/python-modules/pyside/tools.nix { }; + pysignalclirestapi = callPackage ../development/python-modules/pysignalclirestapi { }; + pysigset = callPackage ../development/python-modules/pysigset { }; pysimplegui = callPackage ../development/python-modules/pysimplegui { }; From d27d50d45c40324d6166e11c3eab05204442b5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 24 Feb 2022 17:22:27 +0000 Subject: [PATCH 2/2] home-assistant: support signal_messenger component --- pkgs/servers/home-assistant/component-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 523aec5611a0..d13c5be5c1d3 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -780,7 +780,7 @@ "sia" = ps: with ps; [ pysiaalarm ]; "sigfox" = ps: with ps; [ ]; "sighthound" = ps: with ps; [ pillow simplehound ]; - "signal_messenger" = ps: with ps; [ ]; # missing inputs: pysignalclirestapi + "signal_messenger" = ps: with ps; [ pysignalclirestapi ]; "simplepush" = ps: with ps; [ ]; # missing inputs: simplepush "simplisafe" = ps: with ps; [ simplisafe-python ]; "simulated" = ps: with ps; [ ]; @@ -1476,6 +1476,7 @@ "sia" "sigfox" "sighthound" + "signal_messenger" "simplisafe" "simulated" "siren"