From 1ee18e30b43903a71b066df0922d2d011b859237 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Sat, 21 Jun 2025 11:14:42 +0200 Subject: [PATCH] seafile-shared: fix python3.13 compat fix "error: future-1.0.0 not supported for interpreter python3.13" Signed-off-by: Florian Brandes --- pkgs/by-name/se/seafile-shared/package.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/se/seafile-shared/package.nix b/pkgs/by-name/se/seafile-shared/package.nix index 2fb2891eecd5..84a4844cf4e3 100644 --- a/pkgs/by-name/se/seafile-shared/package.nix +++ b/pkgs/by-name/se/seafile-shared/package.nix @@ -25,6 +25,10 @@ stdenv.mkDerivation rec { sha256 = "sha256-IpRCgPxYy1El4EEvVEfzAlbxP/osQUb7pCP3/BhkecU="; }; + postPatch = '' + substituteInPlace scripts/breakpad.py --replace-fail "from __future__ import print_function" "" + ''; + nativeBuildInputs = [ libwebsockets autoreconfHook @@ -48,7 +52,6 @@ stdenv.mkDerivation rec { ]; pythonPath = with python3.pkgs; [ - future pysearpc ]; @@ -56,12 +59,12 @@ stdenv.mkDerivation rec { wrapPythonPrograms ''; - meta = with lib; { + meta = { homepage = "https://github.com/haiwen/seafile"; description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons"; - license = licenses.gpl2Plus; - platforms = platforms.linux; - maintainers = with maintainers; [ + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ schmittlauch ]; };