From efcdef32c3b747d2d7bd3d1afe55748805205558 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Wed, 15 Jul 2026 01:21:35 +0200 Subject: [PATCH] python3Packages.maestral: fix for dropbox 12.2.0 --- pkgs/development/python-modules/maestral/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/maestral/default.nix b/pkgs/development/python-modules/maestral/default.nix index 027768672711..7872d821bc2c 100644 --- a/pkgs/development/python-modules/maestral/default.nix +++ b/pkgs/development/python-modules/maestral/default.nix @@ -41,6 +41,13 @@ buildPythonPackage (finalAttrs: { hash = "sha256-mYFiQL4FumJWP2y1u5tIo1CZL027J8/EIYqJQde7G/c="; }; + postPatch = '' + # is_not_closed was removed from dropbox in https://github.com/dropbox/dropbox-sdk-python/pull/537 + # Upstream has been archived so we cannot expect a fix - use this workaround to keep the package alive a bit longer + substituteInPlace src/maestral/errorhandling.py \ + --replace-fail "elif session_lookup_error.is_not_closed():" "elif False:" + ''; + build-system = [ setuptools ]; dependencies = [