depot/third_party/nixpkgs/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
831 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
requests,
paho-mqtt,
cryptography,
}:
let
pname = "tuya-device-sharing-sdk";
version = "0.1.9";
in
buildPythonPackage {
inherit pname version;
src = fetchPypi {
inherit pname version;
hash = "sha256-mBKR+ttBo0VF33pEmYdjbyM4bGgyDiYexIIsf8mXZW4=";
};
# workaround needed, upstream issue: https://github.com/tuya/tuya-device-sharing-sdk/issues/10
postPatch = ''
touch requirements.txt
'';
build-system = [ setuptools ];
dependencies = [
requests
paho-mqtt
cryptography
];
doCheck = false; # no tests
meta = with lib; {
description = "Tuya Device Sharing SDK";
homepage = "https://github.com/tuya/tuya-device-sharing-sdk";
license = licenses.mit;
maintainers = with maintainers; [ aciceri ];
};
}