2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
click,
|
|
|
|
pycryptodome,
|
|
|
|
requests,
|
|
|
|
tzlocal,
|
2021-07-04 02:40:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "micloud";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Squachen";
|
|
|
|
repo = "micloud";
|
|
|
|
rev = "v_${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-IsNXFs1N+rKwqve2Pjp+wRTZCxHF4acEo6KyhsSKuqI=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "micloud";
|
2021-07-04 02:40:35 +00:00
|
|
|
homepage = "https://github.com/Squachen/micloud";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|