Nixpkgs contributor here. One of the misunderstandings by frenck is how Nix operates[0], which is not via mutable site-packages folders but more accurately as an immutable graph structure. What this means is that to have home-assistant packaged properly, we need to also package its dependencies, which includes ambee.
The argument that "In that case you are shipping an broken Home Assistant version."[1] is incorrect, since we also enable tests[2], when possible, on Python packages to ensure they are packaged correctly.
[0] https://github.com/NixOS/nixpkgs/pull/126326#issuecomment-86...
[1] https://github.com/NixOS/nixpkgs/pull/126326#issuecomment-86...
[2] https://github.com/NixOS/nixpkgs/blob/821b34edaf9911481ad4dd...