From 35fc42abe1be1ecc2540b0a2d8bfb6cfd1f64412 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sun, 22 Mar 2026 11:18:22 +0100 Subject: [PATCH] python3Packages.filebytes: fix build with python 3.14 Upstream PR: https://github.com/sashs/filebytes/pull/36 --- pkgs/development/python-modules/filebytes/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/filebytes/default.nix b/pkgs/development/python-modules/filebytes/default.nix index 332ec50596b7..2a7a73578ae0 100644 --- a/pkgs/development/python-modules/filebytes/default.nix +++ b/pkgs/development/python-modules/filebytes/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch, }: buildPythonPackage rec { @@ -14,6 +15,15 @@ buildPythonPackage rec { sha256 = "0h97i6h525hg401dvvaa5krxi184qpvldbdn0izmirvr9pvh4hkn"; }; + patches = [ + # Upstream PR: https://github.com/sashs/filebytes/pull/36 + (fetchpatch { + name = "python-3.14.patch"; + url = "https://github.com/sashs/filebytes/commit/469058d50d4b7ff8da54b623a0a1aa972cd78dc6.patch"; + hash = "sha256-VizYOqyJ3xpJIU4KKsYcz2DCurlfrWTgdsn84FVWD6w="; + }) + ]; + meta = { homepage = "https://scoding.de/filebytes-introduction"; license = lib.licenses.gpl2;