gphotos-sync: drop

This commit is contained in:
Rafael Ieda
2025-11-06 19:55:17 -03:00
parent 1d1bfea919
commit 19505f5cd1
3 changed files with 1 additions and 84 deletions
-63
View File
@@ -1,63 +0,0 @@
{
lib,
fetchFromGitHub,
python3,
ffmpeg,
}:
python3.pkgs.buildPythonApplication rec {
pname = "gphotos-sync";
version = "3.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "gilesknap";
repo = "gphotos-sync";
rev = version;
hash = "sha256-iTqD/oUQqC7Fju8SEPkSZX7FC9tE4eRCewiJR8STmEw=";
};
patches = [
./skip-network-tests.patch
];
nativeBuildInputs = with python3.pkgs; [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = with python3.pkgs; [
appdirs
attrs
exif
google-auth-oauthlib
psutil
pyyaml
psutil
requests-oauthlib
types-pyyaml
types-requests
];
buildInputs = [
ffmpeg
];
nativeCheckInputs = with python3.pkgs; [
mock
pytestCheckHook
];
preCheck = ''
export PY_IGNORE_IMPORTMISMATCH=1
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Google Photos and Albums backup with Google Photos Library API";
mainProgram = "gphotos-sync";
homepage = "https://github.com/gilesknap/gphotos-sync";
license = licenses.asl20;
maintainers = with maintainers; [ dnr ];
};
}
@@ -1,21 +0,0 @@
diff --git a/tests/test_setup.py b/tests/test_setup.py
index 085b110..ea4a7d2 100644
--- a/tests/test_setup.py
+++ b/tests/test_setup.py
@@ -45,7 +45,8 @@ class SetupDbAndCredentials:
return self
def __exit__(self, exc_type=None, exc_value=None, traceback=None):
- self.gp.google_photos_down.close()
+ if hasattr(self.gp, 'google_photos_down'):
+ self.gp.google_photos_down.close()
def test_setup(self, test_name, args=None, trash_db=False, trash_files=False):
self.root = Path("/tmp/gpTests/{}".format(test_name))
@@ -76,3 +77,6 @@ class SetupDbAndCredentials:
def test_done(self):
self.gp.data_store.store()
+
+import pytest, requests
+requests.Session.__init__ = lambda *args, **kwargs: pytest.skip("no network access")
+1
View File
@@ -669,6 +669,7 @@ mapAliases {
godot_4_3-export-templates = throw "'godot_4_3-export-templates' has been renamed to/replaced by 'godot_4_3-export-templates-bin'"; # Converted to throw 2025-10-27
godot_4_4-export-templates = throw "'godot_4_4-export-templates' has been renamed to/replaced by 'godot_4_4-export-templates-bin'"; # Converted to throw 2025-10-27
goldwarden = throw "'goldwarden' has been removed, as it no longer works with new Bitwarden versions and is abandoned upstream"; # Added 2025-09-16
gphotos-sync = throw "'gphotos-sync' has been removed, as it was archived upstream due to API changes that ceased its functions"; # Added 2025-11-06
gprbuild-boot = throw "'gprbuild-boot' has been renamed to/replaced by 'gnatPackages.gprbuild-boot'"; # Converted to throw 2025-10-27
gpxsee-qt5 = throw "gpxsee-qt5 was removed, use gpxsee instead"; # added 2025-09-09
gpxsee-qt6 = gpxsee; # added 2025-09-09