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