depot/third_party/nixpkgs/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix

43 lines
831 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
requests,
paho-mqtt,
cryptography,
}:
let
pname = "tuya-device-sharing-sdk";
version = "0.2.1";
in
buildPythonPackage {
inherit pname version;
src = fetchPypi {
inherit pname version;
hash = "sha256-cuLJfCIQmnySCN1yezxyqtFmnTUdhD9tY9sBYNh9iUI=";
};
# 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 ];
};
}