From 9c5250873c16e66c2b857073bdebe1d5c63ad9d8 Mon Sep 17 00:00:00 2001 From: kurogeek Date: Fri, 6 Nov 2026 04:41:56 +0000 Subject: [PATCH] frappix: add mysqlclient to insights for ibis mysql backend insights' after_migrate hook connects to the Site DB data source via ibis.mysql; the ibis 12 mysql backend imports MySQLdb, which frappix does not ship. Fixes b4lerp migrate failing on bosona. --- pkgs/frappix/overlay.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/frappix/overlay.nix b/pkgs/frappix/overlay.nix index 0ade3c6a..f28b62ac 100644 --- a/pkgs/frappix/overlay.nix +++ b/pkgs/frappix/overlay.nix @@ -2,8 +2,15 @@ # Must be applied after frappixFrappeOverlay (needs prev.frappix). final: prev: { frappix = prev.frappix.overrideScope ( - ffinal: _fprev: { + ffinal: fprev: { default_thai_company = ffinal.callPackage ./default-thai-company.nix { }; + + # insights' after_migrate hook opens the "Site DB" data source via + # ibis.mysql, whose backend imports MySQLdb (mysqlclient) since ibis 10. + # Upstream frappix only ships ibis-framework without the mysql extra. + insights = fprev.insights.overridePythonAttrs (old: { + dependencies = old.dependencies ++ [ final.python3.pkgs.mysqlclient ]; + }); } ); }