Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 52 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aniso8601 5, jsonschema 6, flask 7, werkzeug 8, pytz 9, faker 10, six 11, enum34 12, isPy27 13, mock 14, blinker 15, pytest-flask 16, pytest-mock 17, pytest-benchmark 18, pytestCheckHook 19}: 20 21buildPythonPackage rec { 22 pname = "flask-restx"; 23 version = "0.3.0"; 24 25 # Tests not included in PyPI tarball 26 src = fetchFromGitHub { 27 owner = "python-restx"; 28 repo = pname; 29 rev = version; 30 sha256 = "0aj13nd3z71gb8c2kqiaz3f9k7jr0srlvrsx8hpz4nkpki8jiz2s"; 31 }; 32 33 propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ] 34 ++ lib.optionals isPy27 [ enum34 ]; 35 36 checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ]; 37 38 pytestFlagsArray = [ 39 "--benchmark-disable" 40 "--deselect=tests/test_inputs.py::URLTest::test_check" 41 "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check" 42 "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level" 43 ]; 44 45 meta = with lib; { 46 homepage = "https://flask-restx.readthedocs.io/en/${version}/"; 47 description = "Fully featured framework for fast, easy and documented API development with Flask"; 48 changelog = "https://github.com/python-restx/flask-restx/raw/${version}/CHANGELOG.rst"; 49 license = licenses.bsd3; 50 maintainers = [ maintainers.marsam ]; 51 }; 52}