1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, aniso8601 6, jsonschema 7, flask 8, werkzeug 9, pytz 10, faker 11, mock 12, blinker 13, pytest-flask 14, pytest-mock 15, pytest-benchmark 16, pytestCheckHook 17}: 18 19buildPythonPackage rec { 20 pname = "flask-restx"; 21 version = "1.0.3"; 22 format = "setuptools"; 23 24 disabled = pythonOlder "3.7"; 25 26 # Tests not included in PyPI tarball 27 src = fetchFromGitHub { 28 owner = "python-restx"; 29 repo = pname; 30 rev = version; 31 sha256 = "sha256-fodoGeVSNw4XZrVt907H20OJQIR8FlfINvEPWOkZQqI="; 32 }; 33 34 propagatedBuildInputs = [ 35 aniso8601 36 flask 37 jsonschema 38 pytz 39 werkzeug 40 ]; 41 42 checkInputs = [ 43 blinker 44 faker 45 mock 46 pytest-benchmark 47 pytest-flask 48 pytest-mock 49 pytestCheckHook 50 ]; 51 52 pytestFlagsArray = [ 53 "--benchmark-disable" 54 "--deselect=tests/test_inputs.py::URLTest::test_check" 55 "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check" 56 "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level" 57 ]; 58 59 pythonImportsCheck = [ 60 "flask_restx" 61 ]; 62 63 meta = with lib; { 64 description = "Fully featured framework for fast, easy and documented API development with Flask"; 65 homepage = "https://github.com/python-restx/flask-restx"; 66 changelog = "https://github.com/python-restx/flask-restx/raw/${version}/CHANGELOG.rst"; 67 license = licenses.bsd3; 68 maintainers = [ maintainers.marsam ]; 69 }; 70}