Downgrade to match the version pinned by home-assistant 2026.3.3 in its manifest.json.
43 lines
903 B
Nix
43 lines
903 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
paho-mqtt,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "tuya-device-sharing-sdk";
|
|
version = "0.2.8";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tuya";
|
|
repo = "tuya-device-sharing-sdk";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-uD2Lzs08i/01iEksXpYRGB2lU7I15sQrJLfJZ93+oeY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cryptography
|
|
paho-mqtt
|
|
requests
|
|
];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
pythonImportsCheck = [ "tuya_sharing" ];
|
|
|
|
meta = {
|
|
description = "Tuya Device Sharing SDK";
|
|
homepage = "https://github.com/tuya/tuya-device-sharing-sdk";
|
|
changelog = "https://github.com/tuya/tuya-device-sharing-sdk/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ aciceri ];
|
|
};
|
|
})
|