1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, paho-mqtt 6, pydantic 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "yolink-api"; 12 version = "0.1.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "YoSmart-Inc"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-uEW8d8b7ObwmGwVTOq25kZWaLVv4lxTl+cqZK5Kjkmo="; 22 }; 23 24 propagatedBuildInputs = [ 25 aiohttp 26 paho-mqtt 27 pydantic 28 ]; 29 30 # Module has no tests 31 doCheck = false; 32 33 pythonImportsCheck = [ 34 "yolink" 35 ]; 36 37 meta = with lib; { 38 description = "Library to interface with Yolink"; 39 homepage = "https://github.com/YoSmart-Inc/yolink-api"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}