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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{
lib,
buildPythonPackage,
certifi,
click,
fetchFromGitHub,
fido2,
keyring,
keyrings-alt,
pytest-mock,
pytest-socket,
pytestCheckHook,
pythonAtLeast,
requests,
setuptools,
setuptools-scm,
srp,
tzlocal,
}:
buildPythonPackage rec {
pname = "pyicloud";
version = "2.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "timlaing";
repo = "pyicloud";
tag = version;
hash = "sha256-Lkabmeh+D+nv30DyVRTQhnoyEt6cp2003uGn/GyOrHs=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
certifi
click
fido2
keyring
keyrings-alt
requests
srp
tzlocal
];
nativeCheckInputs = [
pytest-mock
pytest-socket
pytestCheckHook
];
pythonImportsCheck = [ "pyicloud" ];
disabledTests = lib.optionals (pythonAtLeast "3.12") [
# https://github.com/picklepete/pyicloud/issues/446
"test_storage"
];
meta = {
description = "Module to interact with iCloud webservices";
mainProgram = "icloud";
homepage = "https://github.com/timlaing/pyicloud";
changelog = "https://github.com/timlaing/pyicloud/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.mic92 ];
};
}
|