diff --git a/pkgs/development/python-modules/pyicloud/default.nix b/pkgs/development/python-modules/pyicloud/default.nix index 2d87062de302..a7d1bc73ef6e 100644 --- a/pkgs/development/python-modules/pyicloud/default.nix +++ b/pkgs/development/python-modules/pyicloud/default.nix @@ -1,56 +1,69 @@ { 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 ]; };