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}"'