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.
17 lines
674 B
Nix
17 lines
674 B
Nix
# Extends the frappix app scope with in-house frappe apps.
|
|
# Must be applied after frappixFrappeOverlay (needs prev.frappix).
|
|
final: prev: {
|
|
frappix = prev.frappix.overrideScope (
|
|
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 ];
|
|
});
|
|
}
|
|
);
|
|
}
|