Something went wrong. Try again.
lol
Something went wrong. Try again.
776 B · 42 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, buildPythonPackage, fetchFromGitHub, click, pycryptodome, requests, tzlocal,}:
buildPythonPackage rec { pname = "micloud"; version = "0.6"; format = "setuptools";
src = fetchFromGitHub { owner = "Squachen"; repo = "micloud"; rev = "v_${version}"; hash = "sha256-IsNXFs1N+rKwqve2Pjp+wRTZCxHF4acEo6KyhsSKuqI="; };
propagatedBuildInputs = [ click pycryptodome requests tzlocal ];
# tests require credentials doCheck = false;
pythonImportsCheck = [ "micloud" ];
meta = { description = "Xiaomi cloud connect library"; mainProgram = "micloud"; homepage = "https://github.com/Squachen/micloud"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; };}