2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonAtLeast,
|
|
|
|
setuptools,
|
|
|
|
certifi,
|
|
|
|
click,
|
|
|
|
keyring,
|
|
|
|
keyrings-alt,
|
|
|
|
pytz,
|
|
|
|
requests,
|
|
|
|
six,
|
|
|
|
tzlocal,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
future,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyicloud";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.0.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "picklepete";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-2E1pdHHt8o7CGpdG+u4xy5OyNCueUGVw5CY8oicYd5w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-02-13 14:23:35 +00:00
|
|
|
certifi
|
|
|
|
click
|
|
|
|
future
|
2020-04-24 23:36:52 +00:00
|
|
|
keyring
|
|
|
|
keyrings-alt
|
2021-02-13 14:23:35 +00:00
|
|
|
pytz
|
|
|
|
requests
|
2020-04-24 23:36:52 +00:00
|
|
|
six
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-13 14:23:35 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
# https://github.com/picklepete/pyicloud/issues/446
|
|
|
|
"test_storage"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "icloud";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/picklepete/pyicloud";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|