Merge pull request #281833 from rhoriguchi/gphotos-sync

gphotos-sync: 3.1.2 -> 3.2.1
This commit is contained in:
maxine 2024-01-22 18:21:45 +01:00 committed by GitHub
commit 6672dc544a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,41 +5,26 @@
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "gphotos-sync"; pname = "gphotos-sync";
version = "3.1.2"; version = "3.2.1";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gilesknap"; owner = "gilesknap";
repo = "gphotos-sync"; repo = "gphotos-sync";
rev = version; rev = version;
hash = "sha256-lLw450Rk7tIENFTZWHoinkhv3VtctDv18NKxhox+NgI="; hash = "sha256-iTqD/oUQqC7Fju8SEPkSZX7FC9tE4eRCewiJR8STmEw=";
}; };
patches = [ patches = [
./skip-network-tests.patch ./skip-network-tests.patch
]; ];
# 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; [ nativeBuildInputs = with python3.pkgs; [
pythonRelaxDepsHook
setuptools setuptools
setuptools-scm setuptools-scm
wheel wheel
]; ];
pythonRelaxDeps = [
"psutil"
"exif"
"pyyaml"
];
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
appdirs appdirs
attrs attrs
@ -63,9 +48,8 @@ python3.pkgs.buildPythonApplication rec {
]; ];
preCheck = '' preCheck = ''
export PY_IGNORE_IMPORTMISMATCH=1
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
substituteInPlace setup.cfg \
--replace "--cov=gphotos_sync --cov-report term --cov-report xml:cov.xml" ""
''; '';
meta = with lib; { meta = with lib; {