17 buildPythonPackage rec {
18 pname = "flask-restful";
20 format = "setuptools";
22 disabled = pythonOlder "3.7";
25 pname = "Flask-RESTful";
27 hash = "sha256-/kry7wAn34+bT3l6uiDFVmgBtq3plaxjtYir8aWc7Dc=";
30 # conditional so that overrides are easier for web applications
32 lib.optionals (lib.versionAtLeast werkzeug.version "2.1.0") [ ./werkzeug-2.1.0-compat.patch ]
33 ++ lib.optionals (lib.versionAtLeast flask.version "3.0.0") [ ./flask-3.0-compat.patch ]
35 # replace use nose by pytest: https://github.com/flask-restful/flask-restful/pull/970
37 url = "https://github.com/flask-restful/flask-restful/commit/6cc4b057e5450e0c84b3ee5f6f7a97e648a816d6.patch?full_index=1";
38 hash = "sha256-kIjrkyL0OfX+gjoiYfchU0QYTPHz4JMCQcHLFH9oEF4=";
40 ./fix-test-inputs.patch
43 propagatedBuildInputs = [
57 # Broke in flask 2.2 upgrade
58 "test_exception_header_forwarded"
59 # Broke in werkzeug 2.3 upgrade
60 "test_media_types_method"
63 "test_iso8601_date_field_with_offset"
64 "test_rfc822_date_field_with_offset"
67 pythonImportsCheck = [ "flask_restful" ];
70 description = "Framework for creating REST APIs";
71 homepage = "https://flask-restful.readthedocs.io";
73 Flask-RESTful provides the building blocks for creating a great
76 license = licenses.bsd3;