Unverified Commit 28774125 authored by Florian Klink's avatar Florian Klink Committed by GitHub
Browse files

python3Packages.bpython: fix build (#516519)

parents 14d200fa 6fe81a7f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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}"'