From 6fe81a7ff56bd1f78d69a0ea285300ff07a81f5c Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 4 May 2026 21:10:21 +0700 Subject: [PATCH] python3Packages.bpython: fix build --- pkgs/development/python-modules/bpython/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/bpython/default.nix b/pkgs/development/python-modules/bpython/default.nix index d71befaa6011..13e98aea9132 100644 --- a/pkgs/development/python-modules/bpython/default.nix +++ b/pkgs/development/python-modules/bpython/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, curtsies, cwcwidth, greenlet, @@ -29,6 +30,14 @@ buildPythonPackage rec { hash = "sha256-NmWM0fdzS9n5FSnNJOCdS1JE5ZHrmJXqCuHa54rT8GU="; }; + patches = [ + # This should be removed in the next release. + (fetchpatch { + url = "https://github.com/bpython/bpython/commit/870e81cb5a6860f1ba15744c81b97f71467eedf9.patch"; + hash = "sha256-z55EkLT51ulz/V3XgjP1cbQza9ztb5YHu1UlXlbaWTQ="; + }) + ]; + postPatch = '' substituteInPlace setup.py \ --replace-fail 'version = "unknown"' 'version = "${version}"'