From d7c3923fcf269c000a40705a4aa9ad5bf1fb5e04 Mon Sep 17 00:00:00 2001 From: wrvsrx Date: Tue, 26 Aug 2025 16:02:51 +0800 Subject: [PATCH] python3Packages.vdirsyncer: fix test --- .../python-modules/vdirsyncer/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/python-modules/vdirsyncer/default.nix b/pkgs/development/python-modules/vdirsyncer/default.nix index b93b03108767..fa3e4b67be06 100644 --- a/pkgs/development/python-modules/vdirsyncer/default.nix +++ b/pkgs/development/python-modules/vdirsyncer/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch, pythonOlder, click, click-log, @@ -38,6 +39,18 @@ buildPythonPackage rec { hash = "sha256-5DeFH+uYXew1RGVPj5z23RCbCwP34ZlWCGYDCS/+so8="; }; + patches = [ + ( + # Fix event_loop missing + # TODO: remove it after vdirsyncer release 0.19.4 + fetchpatch { + # https://github.com/pimutils/vdirsyncer/pull/1185 + url = "https://github.com/pimutils/vdirsyncer/commit/164559ad7a95ed795ce4ae8d9b287bd27704742d.patch"; + hash = "sha256-nUGvkBnHr8nVPpBuhQ5GjaRs3QSxokdZUEIsOrQ+lpo="; + } + ) + ]; + nativeBuildInputs = [ setuptools setuptools-scm