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-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";
|
|
|
|
homepage = "https://github.com/Squachen/micloud";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|