Start refactoring

- remove emacs
- remove inputs
- trying to speed up evaluation
- update inputs
This commit is contained in:
Andrea Ciceri 2024-09-19 14:34:37 +02:00
parent 0ab8805aa5
commit 2d3e4844b7
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
39 changed files with 808 additions and 1452 deletions

View file

@ -27,53 +27,12 @@
rev = "d42edcabc67ba6a7f960e849c8aaec1aabef87c0";
hash = "sha256-KqbP6TpH9B0/AjtsW5TcWSNgUhND+w8rO6X8fHqtsDI=";
};
tuya-device-sharing-sdk = ps:
ps.callPackage (
{
lib,
buildPythonPackage,
fetchPypi,
requests,
paho-mqtt,
cryptography,
}: let
pname = "tuya-device-sharing-sdk";
version = "0.2.0";
in
buildPythonPackage {
inherit pname version;
src = fetchPypi {
inherit pname version;
hash = "sha256-fu8zh59wlnxtstNbNL8mIm10tiXy22oPbi6oUy5x8c8=";
};
postPatch = ''
touch requirements.txt
'';
doCheck = false;
propagatedBuildInputs = [
requests
paho-mqtt
cryptography
];
meta = with lib; {
description = "Tuya Device Sharing SDK";
homepage = "https://github.com/tuya/tuya-device-sharing-sdk";
license = licenses.mit;
maintainers = with maintainers; [aciceri];
};
}
) {};
in {
services.home-assistant = {
enable = true;
openFirewall = true;
package = pkgs.home-assistant.overrideAttrs (old: {
# doInstallCheck = false;
doInstallCheck = false;
# prePatch =
# ''
# rm -rf homeassistant/components/smartthings
@ -107,7 +66,7 @@ in {
# used by pun_sensor
holidays
beautifulsoup4
(tuya-device-sharing-sdk python3Packages) # remove after https://github.com/NixOS/nixpkgs/pull/294706/
tuya-device-sharing-sdk
getmac
garminconnect
tzlocal