Fix home-assistant
packaging tuya-device-sharing-sdk
This commit is contained in:
parent
92f2b08a5a
commit
edf58b4488
1 changed files with 42 additions and 0 deletions
|
@ -21,6 +21,47 @@
|
||||||
rev = "9a40a2fa09b0f74aee0b278e2858f5600b3487a9";
|
rev = "9a40a2fa09b0f74aee0b278e2858f5600b3487a9";
|
||||||
hash = "sha256-i+82EUamV1Fhwhb1vhRqn9aA9dJ0FxSSMD734domyhw=";
|
hash = "sha256-i+82EUamV1Fhwhb1vhRqn9aA9dJ0FxSSMD734domyhw=";
|
||||||
};
|
};
|
||||||
|
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 {
|
in {
|
||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -59,6 +100,7 @@ in {
|
||||||
# used by pun_sensor
|
# used by pun_sensor
|
||||||
holidays
|
holidays
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
(tuya-device-sharing-sdk python3Packages) # remove after https://github.com/NixOS/nixpkgs/pull/294706/
|
||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
default_config = {};
|
default_config = {};
|
||||||
|
|
Loading…
Add table
Reference in a new issue