about summary refs log tree commit diff
path: root/pkgs/development/python-modules/gitlike-commands/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/gitlike-commands/default.nix')
-rw-r--r--pkgs/development/python-modules/gitlike-commands/default.nix10
1 files changed, 10 insertions, 0 deletions
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
   ];