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