Loading pkgs/development/python-modules/pyswitchbee/default.nix 0 → 100644 +51 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , aiohttp , fetchFromGitHub , setuptools , pythonOlder }: buildPythonPackage rec { pname = "pyswitchbee"; version = "1.6.0"; format = "pyproject"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "jafar-atili"; repo = "pySwitchbee"; rev = "refs/tags/${version}"; hash = "sha256-ZAe47Oxw5n6OM/PRKz7OR8yzi/c9jnXeOYNjCbs0j1E="; }; postPatch = '' # https://github.com/jafar-atili/pySwitchbee/pull/2 substituteInPlace pyproject.toml \ --replace '"asyncio",' "" ''; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp ]; # Module doesn't have tests doCheck = false; pythonImportsCheck = [ "switchbee" ]; meta = with lib; { description = "Library to control SwitchBee smart home device"; homepage = "https://github.com/jafar-atili/pySwitchbee/"; # https://github.com/jafar-atili/pySwitchbee/issues/1 license = with licenses; [ unfree ]; maintainers = with maintainers; [ fab ]; }; } pkgs/servers/home-assistant/component-packages.nix +3 −1 Original line number Diff line number Diff line Loading @@ -2944,7 +2944,8 @@ "switch_as_x" = ps: with ps; [ ]; "switchbee" = ps: with ps; [ ]; # missing inputs: pyswitchbee pyswitchbee ]; "switchbot" = ps: with ps; [ pyswitchbot aiohttp-cors Loading Loading @@ -4174,6 +4175,7 @@ "surepetcare" "switch" "switch_as_x" "switchbee" "switchbot" "switcher_kis" "syncthing" Loading pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -8618,6 +8618,8 @@ self: super: with self; { inherit (pkgs) bash subversion apr aprutil expat neon openssl; }; pyswitchbee = callPackage ../development/python-modules/pyswitchbee { }; pyswitchbot = callPackage ../development/python-modules/pyswitchbot { }; pysychonaut = callPackage ../development/python-modules/pysychonaut { }; Loading Loading
pkgs/development/python-modules/pyswitchbee/default.nix 0 → 100644 +51 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , aiohttp , fetchFromGitHub , setuptools , pythonOlder }: buildPythonPackage rec { pname = "pyswitchbee"; version = "1.6.0"; format = "pyproject"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "jafar-atili"; repo = "pySwitchbee"; rev = "refs/tags/${version}"; hash = "sha256-ZAe47Oxw5n6OM/PRKz7OR8yzi/c9jnXeOYNjCbs0j1E="; }; postPatch = '' # https://github.com/jafar-atili/pySwitchbee/pull/2 substituteInPlace pyproject.toml \ --replace '"asyncio",' "" ''; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp ]; # Module doesn't have tests doCheck = false; pythonImportsCheck = [ "switchbee" ]; meta = with lib; { description = "Library to control SwitchBee smart home device"; homepage = "https://github.com/jafar-atili/pySwitchbee/"; # https://github.com/jafar-atili/pySwitchbee/issues/1 license = with licenses; [ unfree ]; maintainers = with maintainers; [ fab ]; }; }
pkgs/servers/home-assistant/component-packages.nix +3 −1 Original line number Diff line number Diff line Loading @@ -2944,7 +2944,8 @@ "switch_as_x" = ps: with ps; [ ]; "switchbee" = ps: with ps; [ ]; # missing inputs: pyswitchbee pyswitchbee ]; "switchbot" = ps: with ps; [ pyswitchbot aiohttp-cors Loading Loading @@ -4174,6 +4175,7 @@ "surepetcare" "switch" "switch_as_x" "switchbee" "switchbot" "switcher_kis" "syncthing" Loading
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -8618,6 +8618,8 @@ self: super: with self; { inherit (pkgs) bash subversion apr aprutil expat neon openssl; }; pyswitchbee = callPackage ../development/python-modules/pyswitchbee { }; pyswitchbot = callPackage ../development/python-modules/pyswitchbot { }; pysychonaut = callPackage ../development/python-modules/pysychonaut { }; Loading