From 3b7deba8c8a241eca2805d5f7e0aa26948795d1a Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sun, 13 Aug 2023 23:49:17 -0700 Subject: [PATCH] beautysh: patch "poetry" reference in pyproject.toml (#248598) --- pkgs/development/tools/beautysh/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/beautysh/default.nix b/pkgs/development/tools/beautysh/default.nix index c66313671e4d..33b8fe0520d4 100644 --- a/pkgs/development/tools/beautysh/default.nix +++ b/pkgs/development/tools/beautysh/default.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, fetchpatch , python3 }: @@ -8,7 +9,6 @@ python3.pkgs.buildPythonApplication rec { version = "6.2.1"; format = "pyproject"; - src = fetchFromGitHub { owner = "lovesegfault"; repo = pname; @@ -16,6 +16,15 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-rPeGRcyNK45Y7OvtzaIH93IIzexBf/jM1SzYP0phQ1o="; }; + patches = [ + # https://github.com/lovesegfault/beautysh/pull/247 + (fetchpatch { + name = "poetry-to-poetry-core.patch"; + url = "https://github.com/lovesegfault/beautysh/commit/5f4fcac083fa68568a50f3c2bcee3ead0f3ca7c5.patch"; + hash = "sha256-H/kIJKww5ouWu8rmRkaMOXcsq2daZWDdwxBqbc99x0s="; + }) + ]; + nativeBuildInputs = with python3.pkgs; [ poetry-core ];