blob: 8e917c51b7585878d4553d0e31dd9a6f988ae773 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
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 ];
};
}
|