Merge pull request #309325 from pyrox0/werkzeug-2.3.8-patch

sourcehut: Fix werkzueg dependency build
This commit is contained in:
Martin Weinelt 2024-05-08 01:57:10 +02:00 committed by GitHub
commit 57443256a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -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