biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / tuya-device-sharing-sdk / default.nix
blobc831f7a0108cd2d4ee72e6f399cb97c70032d8f9
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   requests,
7   paho-mqtt,
8   cryptography,
9 }:
10 let
11   pname = "tuya-device-sharing-sdk";
12   version = "0.1.9";
14 buildPythonPackage {
15   inherit pname version;
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-mBKR+ttBo0VF33pEmYdjbyM4bGgyDiYexIIsf8mXZW4=";
20   };
22   # workaround needed, upstream issue: https://github.com/tuya/tuya-device-sharing-sdk/issues/10
23   postPatch = ''
24     touch requirements.txt
25   '';
27   build-system = [ setuptools ];
29   dependencies = [
30     requests
31     paho-mqtt
32     cryptography
33   ];
35   doCheck = false; # no tests
37   meta = with lib; {
38     description = "Tuya Device Sharing SDK";
39     homepage = "https://github.com/tuya/tuya-device-sharing-sdk";
40     license = licenses.mit;
41     maintainers = with maintainers; [ aciceri ];
42   };