depot/third_party/nixpkgs/pkgs/development/python-modules/pyicloud/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

64 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, setuptools
, certifi
, click
, keyring
, keyrings-alt
, pytz
, requests
, six
, tzlocal
, pytest-mock
, pytestCheckHook
, future
}:
buildPythonPackage rec {
pname = "pyicloud";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "picklepete";
repo = pname;
rev = version;
hash = "sha256-2E1pdHHt8o7CGpdG+u4xy5OyNCueUGVw5CY8oicYd5w=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
certifi
click
future
keyring
keyrings-alt
pytz
requests
six
tzlocal
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
disabledTests = lib.optionals (pythonAtLeast "3.12") [
# https://github.com/picklepete/pyicloud/issues/446
"test_storage"
];
meta = with lib; {
description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices";
mainProgram = "icloud";
homepage = "https://github.com/picklepete/pyicloud";
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}