!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

507 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant131 Servers

Load older messages


SenderMessageTime
30 Mar 2025
@continous:matrix.orgcontinousI just didn't notice, which is my bad. I missed a whole bracket end13:26:47
@dustee:matrix.orgdustee joined the room.22:07:41
31 Mar 2025
@evolve:matrix.imp-network.comevolve joined the room.08:45:16
@dustee:matrix.orgdustee

how do i call a local package.nix which is a buildHomeAssistantComponent ?

        customComponents = with pkgs.home-assistant-custom-components; [
          ntfy
          (pkgs.callPackage ./gree-alternative/package.nix {}) # tried this but error
        ];
'lib.customisation.callPackageWith: Function called without required argument "pycryptodome" # callPackage doesnt seem to fill in the python dependencies
12:07:30
@dustee:matrix.orgdustee *

how do i call a local package.nix which is a buildHomeAssistantComponent ?

        customComponents = with pkgs.home-assistant-custom-components; [
          ntfy
          (pkgs.callPackage ./gree-alternative/package.nix {}) # tried this but error
        ];
'lib.customisation.callPackageWith: Function called without required argument "pycryptodome"

callPackage doesnt seem to fill in the python dependencies

12:08:30
@hexa:lossy.network@hexa:lossy.networkconfig.services.home-assistant.package.callPackage12:13:26
@hexa:lossy.network@hexa:lossy.network * config.services.home-assistant.package.callPackage 12:13:29
@hexa:lossy.network@hexa:lossy.network * config.services.home-assistant.package.python.callPackage 12:13:44
@continous:matrix.orgcontinousAny idea why it is that pythonImportsCheck would fail?12:18:36
@continous:matrix.orgcontinousActually, I may have figured it out.12:19:21
@dustee:matrix.orgdustee
   error: attribute 'callPackage' missing
12:20:06
@dustee:matrix.orgdustee *
        customComponents = [
          (config.services.home-assistant.package.python.callPackage ./gree-alternative/package.nix {})
        ];
   error: attribute 'callPackage' missing
12:20:29
@hexa:lossy.network@hexa:lossy.networkhuh12:20:55
@hexa:lossy.network@hexa:lossy.networkoh, one more!12:21:20
@hexa:lossy.network@hexa:lossy.network config.services.home-assistant.package.python.pkgs.callPackage 12:21:30
@dustee:matrix.orgdusteethat works, thank you12:22:10
@continous:matrix.orgcontinousFor some reason pythonImportsCheck is unable to provide requests, even though it is available in nixpkgs, and I have requests as an input. Any ideas?12:27:26
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/tlyakhov/python-decora_wifi/blob/faaff1ddf2e4c0676fa3bccfbf1639372694b4b5/setup.py#L2612:29:06
@hexa:lossy.network@hexa:lossy.network per this you need to configure dependencies with requests and inflect 12:29:26
@continous:matrix.orgcontinousThat's odd, someone commented removing the dependencies section on my code.12:30:16
@hexa:lossy.network@hexa:lossy.networkchecking12:34:08
@hexa:lossy.network@hexa:lossy.networkhave you tried building the package?12:35:03
@hexa:lossy.network@hexa:lossy.network
decora_wifi/__init__.py
11:import requests
23:        self._session = requests.Session()
12:35:16
@hexa:lossy.network@hexa:lossy.networkbecause it surely requires requests12:35:23
@continous:matrix.orgcontinousYeah it doesn't build now and I couldn't figure out why. The original code worked with dependencies so I'm trying it with dependencies readded.12:36:18
@continous:matrix.orgcontinousMy sloppy built solution that I initial input had requests as a build input.12:37:25
@continous:matrix.orgcontinous* My sloppy built solution that I initial submitted had requests as a build input.12:37:33
@continous:matrix.orgcontinousDependencies fix worked 👍️12:38:39
@continous:matrix.orgcontinousI didn't import inflect in my sloppy initial work, but I'm going to do so now just in case.12:39:01
@continous:matrix.orgcontinousOn a scale of 0-100 how bad is a commit with no changes 😅12:50:21

Show newer messages


Back to Room ListRoom Version: 6