about summary refs log tree commit diff
path: root/pkgs/servers/home-assistant
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-11-27 19:07:15 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-11-27 19:07:15 +0100
commit742ea5dcc81eed1c24ef1c50cbebab75376562a2 (patch)
tree205dd57e38f8462ee18c74dc5727a3efca23faeb /pkgs/servers/home-assistant
parentcbbbee5ce3f3deb416c7a495f627233eb8235a1c (diff)
downloadnixlib-742ea5dcc81eed1c24ef1c50cbebab75376562a2.tar
nixlib-742ea5dcc81eed1c24ef1c50cbebab75376562a2.tar.gz
nixlib-742ea5dcc81eed1c24ef1c50cbebab75376562a2.tar.bz2
nixlib-742ea5dcc81eed1c24ef1c50cbebab75376562a2.tar.lz
nixlib-742ea5dcc81eed1c24ef1c50cbebab75376562a2.tar.xz
nixlib-742ea5dcc81eed1c24ef1c50cbebab75376562a2.tar.zst
nixlib-742ea5dcc81eed1c24ef1c50cbebab75376562a2.zip
home-assistant: propagate pyotp and pyqrcode
These dependencies are not documented, but rather installed at runtime
as needed.

Propagate them to fix the OTP use case, where QR Codes need to be
generated, to e.g. scan them to your phone.
Diffstat (limited to 'pkgs/servers/home-assistant')
-rw-r--r--pkgs/servers/home-assistant/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix
index 4b0b4ee83b66..21c503c8874d 100644
--- a/pkgs/servers/home-assistant/default.nix
+++ b/pkgs/servers/home-assistant/default.nix
@@ -432,6 +432,9 @@ in python.pkgs.buildPythonApplication rec {
     voluptuous
     voluptuous-serialize
     yarl
+    # REQUIREMENTS in homeassistant/auth/mfa_modules/totp.py and homeassistant/auth/mfa_modules/notify.py
+    pyotp
+    pyqrcode
     # Implicit dependency via homeassistant/requirements.py
     setuptools
   ];
@@ -458,8 +461,6 @@ in python.pkgs.buildPythonApplication rec {
     respx
     syrupy
     tomli
-    # required through tests/auth/mfa_modules/test_otp.py
-    pyotp
     # Sneakily imported in tests/conftest.py
     paho-mqtt
   ] ++ lib.concatMap (component: getPackages component python.pkgs) [