From 60c32585c5ea0e9f330577a4f62afcdb89f14a20 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 25 Jan 2024 22:54:36 +0100 Subject: [PATCH] python311Packages.gitlike-commands: add patch to replace distutils --- .../python-modules/gitlike-commands/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/gitlike-commands/default.nix b/pkgs/development/python-modules/gitlike-commands/default.nix index f51adf2a184a..90ac29e9b345 100644 --- a/pkgs/development/python-modules/gitlike-commands/default.nix +++ b/pkgs/development/python-modules/gitlike-commands/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , poetry-core , pythonOlder }: @@ -19,6 +20,15 @@ buildPythonPackage rec { hash = "sha256-VjweN4gigzCNvg6TccZx2Xw1p7SusKplxUTZjItTQc0="; }; + patches = [ + # Replace distutils, https://github.com/unixorn/gitlike-commands/pull/8 + (fetchpatch { + name = "replace-distutils.patch"; + url = "https://github.com/unixorn/gitlike-commands/commit/8a97206aff50a25ac6860032aa03925899c3d0aa.patch"; + hash = "sha256-a2utKbf9vrQlYlPcdj/+OAqWf7VkuC5kvbJ53SK52IA="; + }) + ]; + nativeBuildInputs = [ poetry-core ];