summary refs log tree commit diff
path: root/pkgs/applications/video/corrscope
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-17 15:21:11 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-17 15:21:11 -0700
commit12cdfb86b69b358814a7ccc616f4572ae3902060 (patch)
treec9253e30f6cde669a12876e0b88b01a3fafdce82 /pkgs/applications/video/corrscope
parentb2d45d788a65af8a248b198284e5d825f6425095 (diff)
corrscope: remove setuptools dependency
Diffstat (limited to 'pkgs/applications/video/corrscope')
-rw-r--r--pkgs/applications/video/corrscope/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/applications/video/corrscope/default.nix b/pkgs/applications/video/corrscope/default.nix
index 36878980b0481..c1bab7d2949b8 100644
--- a/pkgs/applications/video/corrscope/default.nix
+++ b/pkgs/applications/video/corrscope/default.nix
@@ -2,6 +2,7 @@
 , mkDerivationWith
 , python3Packages
 , fetchFromGitHub
+, fetchpatch
 , wrapQtAppsHook
 , ffmpeg
 , qtbase
@@ -18,9 +19,18 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
     owner = "corrscope";
     repo = "corrscope";
     rev = version;
-    sha256 = "sha256-pS7upOYZAjgR3lWxny8TNZEj3Rrbg+L90ANZWFO9UPQ=";
+    hash = "sha256-pS7upOYZAjgR3lWxny8TNZEj3Rrbg+L90ANZWFO9UPQ=";
   };
 
+  patches = [
+    # https://github.com/corrscope/corrscope/pull/446
+    (fetchpatch {
+      name = "remove-setuptools-dependency.patch";
+      url = "https://github.com/corrscope/corrscope/commit/70b123173a7a012d9f29d6d3a8960b85caf6cc79.patch";
+      hash = "sha256-YCtb7v8cGP0pdceAKeoempnRzw+LRKQqDb3AfN0z/9s=";
+    })
+  ];
+
   pythonRelaxDeps = [ "attrs" ];
 
   nativeBuildInputs = [