chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ic / icloudpd / package.nix
blobb67ef56b803b99ebd2201be35f83a1b5eddd868d
1 { lib
2 , python3Packages
3 , fetchFromGitHub
4 , nix-update-script
5 , testers
6 , icloudpd
7 }:
9 python3Packages.buildPythonApplication rec {
10   pname = "icloudpd";
11   version = "1.19.1";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "icloud-photos-downloader";
16     repo = "icloud_photos_downloader";
17     rev = "v${version}";
18     hash = "sha256-0DbYbBs/8irj/55+WHyNj+iLWh7KqxReVWfmsWz43Xo=";
19   };
21   pythonRelaxDeps = true;
23   propagatedBuildInputs = with python3Packages; [
24     wheel
25     setuptools
26     requests
27     schema
28     click
29     python-dateutil
30     tqdm
31     piexif
32     urllib3
33     six
34     tzlocal
35     pytz
36     certifi
37     keyring
38     keyrings-alt
39     typing-extensions
40   ];
42   nativeCheckInputs = with python3Packages; [
43     pytestCheckHook
44     mock
45     freezegun
46     vcrpy
47     pytest-timeout
48   ];
50   disabledTests = [
51     # touches network
52     "test_autodelete_photos"
53     "test_download_autodelete_photos"
54     "test_retry_delete_after_download_session_error"
55     "test_retry_fail_delete_after_download_session_error"
56     "test_retry_delete_after_download_internal_error"
57     "test_autodelete_photos_dry_run"
58     "test_retry_fail_delete_after_download_internal_error"
59     "test_autodelete_invalid_creation_date"
60   ];
62   passthru = {
63     updateScript = nix-update-script { };
64     tests = testers.testVersion { package = icloudpd; };
65   };
67   preBuild = ''
68     substituteInPlace pyproject.toml \
69       --replace "setuptools==69.0.2" "setuptools" \
70       --replace "wheel==0.42.0" "wheel"
71   '';
73   meta = with lib; {
74     homepage = "https://github.com/icloud-photos-downloader/icloud_photos_downloader";
75     description = "iCloud Photos Downloader";
76     license = licenses.mit;
77     mainProgram = "icloudpd";
78     maintainers = with maintainers; [ anpin jnsgruk ];
79   };