summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-26 00:45:47 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-26 08:51:06 -0700
commit30a4bbc896199a15089a0710b647336a0917f72f (patch)
treee7567281090bb9459575c1650d8fada368ad4af1 /pkgs/tools/backup
parent118c2681fb404de6703dc755990b3ff37005fb56 (diff)
downloadnixpkgs-30a4bbc896199a15089a0710b647336a0917f72f.tar
nixpkgs-30a4bbc896199a15089a0710b647336a0917f72f.tar.gz
nixpkgs-30a4bbc896199a15089a0710b647336a0917f72f.tar.bz2
nixpkgs-30a4bbc896199a15089a0710b647336a0917f72f.tar.lz
nixpkgs-30a4bbc896199a15089a0710b647336a0917f72f.tar.xz
nixpkgs-30a4bbc896199a15089a0710b647336a0917f72f.tar.zst
nixpkgs-30a4bbc896199a15089a0710b647336a0917f72f.zip
gphotos-sync: relax build dependencies
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/gphotos-sync/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/tools/backup/gphotos-sync/default.nix b/pkgs/tools/backup/gphotos-sync/default.nix
index 707828fae71..27caf6df4db 100644
--- a/pkgs/tools/backup/gphotos-sync/default.nix
+++ b/pkgs/tools/backup/gphotos-sync/default.nix
@@ -21,7 +21,19 @@ python3.pkgs.buildPythonApplication rec {
     ./skip-network-tests.patch
   ];
 
-  nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ];
+  # Consider fixing this upstream by following up on:
+  # https://github.com/gilesknap/gphotos-sync/issues/441
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+      --replace "setuptools<57" "setuptools" \
+      --replace "wheel==0.33.1" "wheel"
+  '';
+
+  nativeBuildInputs = with python3.pkgs; [
+    pythonRelaxDepsHook
+    setuptools
+    wheel
+  ];
 
   pythonRelaxDeps = [
     "psutil"