1{ lib 2, aniso8601 3, blinker 4, buildPythonPackage 5, fetchPypi 6, flask 7, mock 8, nose 9, pytestCheckHook 10, pythonOlder 11, pytz 12, six 13, werkzeug 14}: 15 16buildPythonPackage rec { 17 pname = "flask-restful"; 18 version = "0.3.9"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 pname = "Flask-RESTful"; 25 inherit version; 26 hash = "sha256-zOxlC4NdSBkhOMhTKa4Dc15s7VjpstnCFG1shMBvpT4="; 27 }; 28 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 ]; 33 34 propagatedBuildInputs = [ 35 aniso8601 36 flask 37 pytz 38 six 39 ]; 40 41 checkInputs = [ 42 blinker 43 mock 44 nose 45 pytestCheckHook 46 ]; 47 48 disabledTests = [ 49 # Broke in flask 2.2 upgrade 50 "test_exception_header_forwarded" 51 ]; 52 53 pythonImportsCheck = [ 54 "flask_restful" 55 ]; 56 57 meta = with lib; { 58 description = "Framework for creating REST APIs"; 59 homepage = "https://flask-restful.readthedocs.io"; 60 longDescription = '' 61 Flask-RESTful provides the building blocks for creating a great 62 REST API. 63 ''; 64 license = licenses.bsd3; 65 maintainers = with maintainers; [ ]; 66 }; 67}