about summary refs log tree commit diff
path: root/pkgs/development/python-modules/git-filter-repo
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-12 14:30:38 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-12 14:30:38 -0700
commitf5fbc5eeaadb92e4a9e2b7a72579c5c3fb2536fc (patch)
treef655f9e7f70b070802ad1e8047c131511f822317 /pkgs/development/python-modules/git-filter-repo
parent7ac0e3ae29a0950e18a8ad5d1a8a97d3bedf353f (diff)
python3.pkgs.git-filter-repo: fix duplicate script error during install
Diffstat (limited to 'pkgs/development/python-modules/git-filter-repo')
-rw-r--r--pkgs/development/python-modules/git-filter-repo/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/git-filter-repo/default.nix b/pkgs/development/python-modules/git-filter-repo/default.nix
index b8f8097d3906c..5f4fede287d19 100644
--- a/pkgs/development/python-modules/git-filter-repo/default.nix
+++ b/pkgs/development/python-modules/git-filter-repo/default.nix
@@ -1,5 +1,6 @@
 { lib
 , buildPythonPackage
+, fetchpatch
 , fetchPypi
 , pythonOlder
 , setuptools-scm
@@ -17,6 +18,16 @@ buildPythonPackage rec {
     hash = "sha256-/hdT4Y8L1tPJtXhoyAEa59BWpuurcGcGOWoV71MScl4=";
   };
 
+  patches = [
+    # https://github.com/newren/git-filter-repo/pull/498
+    (fetchpatch {
+      name = "remove-duplicate-script.patch";
+      url = "https://github.com/newren/git-filter-repo/commit/a59e67e7918e577147ca36a70916741be029c878.patch";
+      hash = "sha256-b0QHy9wMWuBWQoptdvLRT+9SRx2u2+11PnzEEB5F0Yo=";
+      stripLen = 1;
+    })
+  ];
+
   nativeBuildInputs = [
     setuptools-scm
   ];