a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
39 lines
715 B
Nix
39 lines
715 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, click
|
|
, pycryptodome
|
|
, requests
|
|
, tzlocal
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "micloud";
|
|
version = "0.6";
|
|
|
|
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 = with lib; {
|
|
description = "Xiaomi cloud connect library";
|
|
homepage = "https://github.com/Squachen/micloud";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|