about summary refs log tree commit diff
path: root/pkgs/applications/version-management/sourcehut
diff options
context:
space:
mode:
authorPyrox <pyrox@pyrox.dev>2024-05-05 13:24:10 -0400
committerPyrox <pyrox@pyrox.dev>2024-05-05 13:24:10 -0400
commit563a41d61621c05c9d646f91e564c49bbc3225fc (patch)
treef86c810702b8ff5c390b600dbb18fbd536820068 /pkgs/applications/version-management/sourcehut
parentc5a8fd5df4df5d7ba946b68220dc564140b3ce0d (diff)
sourcehut: Fix werkzueg dependency build
Diffstat (limited to 'pkgs/applications/version-management/sourcehut')
-rw-r--r--pkgs/applications/version-management/sourcehut/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/sourcehut/default.nix b/pkgs/applications/version-management/sourcehut/default.nix
index 4a1311d578be3..c9cfa31ce9f31 100644
--- a/pkgs/applications/version-management/sourcehut/default.nix
+++ b/pkgs/applications/version-management/sourcehut/default.nix
@@ -6,6 +6,7 @@
 , nixosTests
 , config
 , fetchPypi
+, fetchpatch
 }:
 
 # To expose the *srht modules, they have to be a python module so we use `buildPythonModule`
@@ -64,6 +65,13 @@ let
           inherit version;
           hash = "sha256-VUslfHS763oNJUFgpPj/4YUkP1KlIDUGC3Ycpi2XfwM=";
         };
+        # Fixes a test failure with Pytest 8
+        patches = (oldAttrs.patches or []) ++ [
+          (fetchpatch {
+            url = "https://github.com/pallets/werkzeug/commit/4e5bdca7f8227d10cae828f8064fb98190ace4aa.patch";
+            hash = "sha256-H45/YF9zaOUg6UqEEus4uBeGA/TjynuJZcRyc6BHQ30=";
+          })
+        ];
       });
 
       # sourcehut is not (yet) compatible with factory-boy 3.x