2021-07-04 02:40:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
2022-01-13 20:06:32 +00:00
|
|
|
, pycryptodome
|
2021-07-04 02:40:35 +00:00
|
|
|
, requests
|
|
|
|
, tzlocal
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "micloud";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "0.5";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Squachen";
|
|
|
|
repo = "micloud";
|
|
|
|
rev = "v_${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-1qtOsEH+G5ASsRyVCa4U0WQ/9kDRn1WpPNkvuvWFovQ=";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
2022-01-13 20:06:32 +00:00
|
|
|
pycryptodome
|
2021-07-04 02:40:35 +00:00
|
|
|
requests
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests require credentials
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "micloud" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Xiaomi cloud connect library";
|
|
|
|
homepage = "https://github.com/Squachen/micloud";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|