16 buildPythonPackage rec {
17 pname = "flask-restful";
19 format = "setuptools";
21 disabled = pythonOlder "3.7";
24 pname = "Flask-RESTful";
26 hash = "sha256-/kry7wAn34+bT3l6uiDFVmgBtq3plaxjtYir8aWc7Dc=";
29 # conditional so that overrides are easier for web applications
30 patches = lib.optionals (lib.versionAtLeast werkzeug.version "2.1.0") [
31 ./werkzeug-2.1.0-compat.patch
32 ] ++ lib.optionals (lib.versionAtLeast flask.version "3.0.0") [
33 ./flask-3.0-compat.patch
36 propagatedBuildInputs = [
51 # Broke in flask 2.2 upgrade
52 "test_exception_header_forwarded"
53 # Broke in werkzeug 2.3 upgrade
54 "test_media_types_method"
58 pythonImportsCheck = [
63 description = "Framework for creating REST APIs";
64 homepage = "https://flask-restful.readthedocs.io";
66 Flask-RESTful provides the building blocks for creating a great
69 license = licenses.bsd3;
70 maintainers = with maintainers; [ ];