From 4d7e53b8e9be773097c613bff41ad857b0cbcdb2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 20 Jan 2025 01:52:29 +0100 Subject: [PATCH] python313Packages.fs: fix pyftplib>=1.5.10 compat --- pkgs/development/python-modules/fs/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/fs/default.nix b/pkgs/development/python-modules/fs/default.nix index f67bb186ab6f..1d9031fabc6b 100644 --- a/pkgs/development/python-modules/fs/default.nix +++ b/pkgs/development/python-modules/fs/default.nix @@ -8,7 +8,6 @@ psutil, pyftpdlib, pytestCheckHook, - pythonAtLeast, pythonOlder, pytz, setuptools, @@ -27,6 +26,12 @@ buildPythonPackage rec { hash = "sha256-rpfH1RIT9LcLapWCklMCiQkN46fhWEHhCPvhRPBp0xM="; }; + postPatch = '' + # https://github.com/PyFilesystem/pyfilesystem2/pull/591 + substituteInPlace tests/test_ftpfs.py \ + --replace ThreadedTestFTPd FtpdThreadWrapper + ''; + build-system = [ setuptools ]; dependencies = [