From 6f9d7000ce1cc2a8a87e55a2d5b0925afb500b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 19 Jun 2021 12:10:54 +0200 Subject: [PATCH 1/5] pythonPackages.readlike: init at 0.1.3 --- .../python-modules/readlike/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/readlike/default.nix diff --git a/pkgs/development/python-modules/readlike/default.nix b/pkgs/development/python-modules/readlike/default.nix new file mode 100644 index 000000000000..f2e3d11e7edd --- /dev/null +++ b/pkgs/development/python-modules/readlike/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +}: + +buildPythonPackage rec { + pname = "readlike"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "jangler"; + repo = "readlike"; + rev = version; + sha256 = "1mw8j8ads8hqdbz42siwpffi4wi5s33z9g14a5c2i7vxp8m68qc1"; + }; + + checkPhase = '' + ${python.interpreter} -m unittest discover -s tests + ''; + + meta = with lib; { + description = "GNU Readline-like line editing module"; + homepage = "https://github.com/jangler/readlike"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9adf1f901297..cdc571cc8863 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7313,6 +7313,8 @@ in { readchar = callPackage ../development/python-modules/readchar { }; + readlike = callPackage ../development/python-modules/readlike { }; + readme = callPackage ../development/python-modules/readme { }; readme_renderer = callPackage ../development/python-modules/readme_renderer { }; From fd6e2d87937443a3d44791c98599d058bb5c6c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 19 Jun 2021 12:18:48 +0200 Subject: [PATCH 2/5] python3Packages.reparser: init at 1.4.3 --- .../python-modules/reparser/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/reparser/default.nix diff --git a/pkgs/development/python-modules/reparser/default.nix b/pkgs/development/python-modules/reparser/default.nix new file mode 100644 index 000000000000..90d701a0e465 --- /dev/null +++ b/pkgs/development/python-modules/reparser/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, isPy27 +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "reparser"; + version = "1.4.3"; + + disabled = isPy27; + + src = fetchFromGitHub { + owner = "xmikos"; + repo = "reparser"; + rev = "v${version}"; + sha256 = "04v7h52wny0j2qj37501nk33j0s4amm134kagdicx2is49zylzq1"; + }; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "reparser" ]; + + meta = with lib; { + description = "Simple regex-based lexer/parser for inline markup"; + homepage = "https://github.com/xmikos/reparser"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cdc571cc8863..6df69b987c8b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7353,6 +7353,8 @@ in { rencode = callPackage ../development/python-modules/rencode { }; + reparser = callPackage ../development/python-modules/reparser { }; + repeated_test = callPackage ../development/python-modules/repeated_test { }; repocheck = callPackage ../development/python-modules/repocheck { }; From 07d5520ce2e8f6ae4bad34fc4f8cb1db4004b6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 19 Jun 2021 13:28:15 +0200 Subject: [PATCH 3/5] python3Packages.hangups: init at 0.4.14 --- .../python-modules/hangups/default.nix | 70 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 72 insertions(+) create mode 100644 pkgs/development/python-modules/hangups/default.nix diff --git a/pkgs/development/python-modules/hangups/default.nix b/pkgs/development/python-modules/hangups/default.nix new file mode 100644 index 000000000000..9c32bc2dd951 --- /dev/null +++ b/pkgs/development/python-modules/hangups/default.nix @@ -0,0 +1,70 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, configargparse +, aiohttp +, async-timeout +, appdirs +, readlike +, requests +, reparser +, protobuf +, urwid +, mechanicalsoup +, httpretty +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "hangups"; + version = "0.4.14"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "tdryer"; + repo = "hangups"; + rev = "v${version}"; + sha256 = "14njagpdp13zlaqnwl2mh7fkpnsaqr6wkr4lwh608v06pkwwcwcm"; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace "protobuf>=3.1.0,<3.16" "protobuf" \ + --replace "MechanicalSoup>=0.6.0,<0.13" "MechanicalSoup" + ''; + + propagatedBuildInputs = [ + configargparse + aiohttp + async-timeout + appdirs + readlike + requests + reparser + protobuf + urwid + mechanicalsoup + ]; + + checkInputs = [ + httpretty + pytestCheckHook + ]; + + pythonImportsCheck = [ + "hangups" + "hangups.client" + "hangups.event" + "hangups.parsers" + "hangups.user" + ]; + + meta = with lib; { + description = "The first third-party instant messaging client for Google Hangouts"; + homepage = "https://github.com/tdryer/hangups"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6df69b987c8b..58f9c3d0e023 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3174,6 +3174,8 @@ in { handout = callPackage ../development/python-modules/handout { }; + hangups = callPackage ../development/python-modules/hangups { }; + hap-python = callPackage ../development/python-modules/hap-python { }; hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { }; From 46c5313b78d1c0152dd734c74ea4c4e70bada879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 19 Jun 2021 13:33:01 +0200 Subject: [PATCH 4/5] home-assistant: update component-packages.nix --- 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 159b77e8b779..d8ba038c0007 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -336,7 +336,7 @@ "gtfs" = ps: with ps; [ pygtfs ]; "guardian" = ps: with ps; [ aioguardian ]; "habitica" = ps: with ps; [ habitipy ]; - "hangouts" = ps: with ps; [ ]; # missing inputs: hangups + "hangouts" = ps: with ps; [ hangups ]; "harman_kardon_avr" = ps: with ps; [ ]; # missing inputs: hkavr "harmony" = ps: with ps; [ aioharmony ]; "hassio" = ps: with ps; [ aiohttp-cors home-assistant-frontend pillow ]; From 6db54500680fd50421e8badbc58945074034f796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 19 Jun 2021 13:35:01 +0200 Subject: [PATCH 5/5] home-assistant: test hangouts component --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index b0ba15e88203..3873692c3a1c 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -436,6 +436,7 @@ in with py.pkgs; buildPythonApplication rec { "growatt_server" "guardian" "habitica" + "hangouts" "harmony" "hassio" "hddtemp"