1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, click 5, pycryptodome 6, requests 7, tzlocal 8}: 9 10buildPythonPackage rec { 11 pname = "micloud"; 12 version = "0.6"; 13 14 src = fetchFromGitHub { 15 owner = "Squachen"; 16 repo = "micloud"; 17 rev = "v_${version}"; 18 hash = "sha256-IsNXFs1N+rKwqve2Pjp+wRTZCxHF4acEo6KyhsSKuqI="; 19 }; 20 21 propagatedBuildInputs = [ 22 click 23 pycryptodome 24 requests 25 tzlocal 26 ]; 27 28 # tests require credentials 29 doCheck = false; 30 31 pythonImportsCheck = [ "micloud" ]; 32 33 meta = with lib; { 34 description = "Xiaomi cloud connect library"; 35 homepage = "https://github.com/Squachen/micloud"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ dotlambda ]; 38 }; 39}