python3Packages.flask-restx: patch for werkzeug 2.1 compat

This commit is contained in:
Martin Weinelt 2022-04-15 00:43:56 +02:00
parent 75331fc5e5
commit fa37f4a1ff

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, aniso8601
, jsonschema
, flask
@ -28,6 +29,20 @@ buildPythonPackage rec {
sha256 = "18vrmknyxw6adn62pz3kr9kvazfgjgl4pgimdf8527fyyiwcqy15";
};
patches = [
# Fixes werkzeug 2.1 compatibility
(fetchpatch {
# https://github.com/python-restx/flask-restx/pull/427
url = "https://github.com/python-restx/flask-restx/commit/bb72a51860ea8a42c928f69bdd44ad20b1f9ee7e.patch";
hash = "sha256-DRH3lI6TV1m0Dq1VyscL7GQS26OOra9g88dXZNrNpmQ=";
})
(fetchpatch {
# https://github.com/python-restx/flask-restx/pull/427
url = "https://github.com/python-restx/flask-restx/commit/bb3e9dd83b9d4c0d0fa0de7d7ff713fae71eccee.patch";
hash = "sha256-HJpjG4aQWzEPCMfbXfkw4mz5TH9d89BCvGH2dE6Jfv0=";
})
];
propagatedBuildInputs = [
aniso8601
flask