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
34 propagatedBuildInputs = [
49 # Broke in flask 2.2 upgrade
50 "test_exception_header_forwarded"
51 # Broke in werkzeug 2.3 upgrade
52 "test_media_types_method"
56 pythonImportsCheck = [
61 description = "Framework for creating REST APIs";
62 homepage = "https://flask-restful.readthedocs.io";
64 Flask-RESTful provides the building blocks for creating a great
67 license = licenses.bsd3;
68 maintainers = with maintainers; [ ];