Merge pull request #137374 from risicle/ris-flask-restx-CVE-2021-32838

[21.05] python38Packages.flask-restx: add patch for CVE-2021-32838
This commit is contained in:
Mario Rodas 2021-09-12 17:00:54 -05:00 committed by GitHub
commit 53c72f9981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, aniso8601
, jsonschema
, flask
@ -30,6 +31,14 @@ buildPythonPackage rec {
sha256 = "0aj13nd3z71gb8c2kqiaz3f9k7jr0srlvrsx8hpz4nkpki8jiz2s";
};
patches = [
(fetchpatch {
name = "CVE-2021-32838.patch";
url = "https://github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656da.patch";
sha256 = "1n786f0zq3gyrp9s28qw3j8bkqhys38vbaafaizplaf4f76bh7m8";
})
];
propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
++ lib.optionals isPy27 [ enum34 ];