From 8fa9296086d7cda6fcba09f59dd698d95f206562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Tue, 26 Sep 2023 08:50:54 +0100 Subject: [PATCH] fix mautrix-telegram --- matrix/mautrix-telegram/default.nix | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/matrix/mautrix-telegram/default.nix b/matrix/mautrix-telegram/default.nix index 9cb263b..3edb81d 100644 --- a/matrix/mautrix-telegram/default.nix +++ b/matrix/mautrix-telegram/default.nix @@ -4,11 +4,25 @@ fetchFromGitHub, }: let source = builtins.fromJSON (builtins.readFile ./source.json); + python = python3.override { + packageOverrides = self: super: { + dask = super.dask.overridePythonAttrs (_: { + installCheckPhase = "true"; + }); + + pyarrow = super.pyarrow.overridePythonAttrs (old: { + installCheckPhase = "true"; + }); + tifffile = super.tifffile.overridePythonAttrs (old: { + installCheckPhase = "true"; + }); + }; + }; in - python3.pkgs.buildPythonPackage rec { + python.pkgs.buildPythonPackage rec { pname = "mautrix-telegram"; version = source.date; - disabled = python3.pythonOlder "3.8"; + disabled = python.pythonOlder "3.8"; src = fetchFromGitHub { owner = "mautrix"; @@ -23,14 +37,14 @@ in --replace "asyncpg>=0.20,<0.27" "asyncpg>=0.20" ''; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ ruamel-yaml python-magic CommonMark aiohttp yarl - (python3.pkgs.callPackage ../../python/mautrix.nix {}) - (python3.pkgs.callPackage ../../python/tulir-telethon.nix {}) + (python.pkgs.callPackage ../../python/mautrix.nix {}) + (python.pkgs.callPackage ../../python/tulir-telethon.nix {}) asyncpg Mako # optional @@ -58,7 +72,7 @@ in description = "A Matrix-Telegram hybrid puppeting/relaybot bridge"; license = licenses.agpl3Plus; platforms = platforms.linux; - broken = !(python3.pkgs ? cryptg); + broken = !(python.pkgs ? cryptg); }; passthru.updateScript = [ ../../scripts/update-git.sh -- 2.46.0