10 python3Packages.buildPythonApplication rec {
15 src = fetchFromGitHub {
16 owner = "icloud-photos-downloader";
17 repo = "icloud_photos_downloader";
19 hash = "sha256-7I/mthqlV5+EWaLRlCmBZPJaf7dWm8alpUtmlxvUNsY=";
22 pythonRelaxDeps = true;
24 dependencies = with python3Packages; [
45 build-system = with python3Packages; [ setuptools ];
47 nativeCheckInputs = with python3Packages; [
57 "test_autodelete_photos"
58 "test_download_autodelete_photos"
59 "test_retry_delete_after_download_session_error"
60 "test_retry_fail_delete_after_download_session_error"
61 "test_retry_delete_after_download_internal_error"
62 "test_autodelete_photos_dry_run"
63 "test_retry_fail_delete_after_download_internal_error"
64 "test_autodelete_invalid_creation_date"
65 "test_folder_structure_de_posix"
69 updateScript = nix-update-script { };
70 tests = testers.testVersion { package = icloudpd; };
74 substituteInPlace pyproject.toml \
75 --replace-fail "setuptools==69.0.2" "setuptools" \
76 --replace-fail "wheel==0.42.0" "wheel"
78 substituteInPlace src/foundation/__init__.py \
79 --replace-fail "0.0.1" "${version}"
83 homepage = "https://github.com/icloud-photos-downloader/icloud_photos_downloader";
84 description = "iCloud Photos Downloader";
85 license = licenses.mit;
86 mainProgram = "icloudpd";
87 maintainers = with maintainers; [