nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 42 lines 903 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 paho-mqtt, 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage (finalAttrs: { 12 pname = "tuya-device-sharing-sdk"; 13 version = "0.2.9"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "tuya"; 18 repo = "tuya-device-sharing-sdk"; 19 tag = finalAttrs.version; 20 hash = "sha256-kNWg+AXISThwK14ByObUr+/4GMntrZgtEEMNpw/HjLw="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 cryptography 27 paho-mqtt 28 requests 29 ]; 30 31 doCheck = false; # no tests 32 33 pythonImportsCheck = [ "tuya_sharing" ]; 34 35 meta = { 36 description = "Tuya Device Sharing SDK"; 37 homepage = "https://github.com/tuya/tuya-device-sharing-sdk"; 38 changelog = "https://github.com/tuya/tuya-device-sharing-sdk/releases/tag/${finalAttrs.version}"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ aciceri ]; 41 }; 42})