Unverified Commit 0983bb1b authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python313Packages.pyicloud: 1.0.0 -> 2.1.0 (#447653)

parents 4a60e53a 63fa10f9
Loading
Loading
Loading
Loading
+26 −13
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonAtLeast,
  setuptools,
  certifi,
  click,
  fetchFromGitHub,
  fido2,
  keyring,
  keyrings-alt,
  requests,
  tzlocal,
  pytest-mock,
  pytest-socket,
  pytestCheckHook,
  pythonAtLeast,
  requests,
  setuptools,
  setuptools-scm,
  srp,
  tzlocal,
}:

buildPythonPackage rec {
  pname = "pyicloud";
  version = "1.0.0";
  version = "2.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "picklepete";
    owner = "timlaing";
    repo = "pyicloud";
    rev = version;
    hash = "sha256-2E1pdHHt8o7CGpdG+u4xy5OyNCueUGVw5CY8oicYd5w=";
    tag = version;
    hash = "sha256-bGS5yAizdaZUdwKNoZPKP/DSpJs5XI70hyTLfJg9QmI=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [
    setuptools
    setuptools-scm
  ];

  propagatedBuildInputs = [
  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 = with lib; {
    description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices";
    description = "Module to interact with iCloud webservices";
    mainProgram = "icloud";
    homepage = "https://github.com/picklepete/pyicloud";
    homepage = "https://github.com/timlaing/pyicloud";
    changelog = "https://github.com/timlaing/pyicloud/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = [ maintainers.mic92 ];
  };