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