25 buildPythonPackage rec {
26 pname = "flask-restx";
30 disabled = pythonOlder "3.8";
32 # Tests not included in PyPI tarball
33 src = fetchFromGitHub {
34 owner = "python-restx";
37 hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI=";
40 build-system = [ setuptools ];
66 "--deselect=tests/test_inputs.py::URLTest::test_check"
67 "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
68 "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
70 ++ lib.optionals stdenv.hostPlatform.isDarwin [
71 "--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check"
75 "test_specs_endpoint_host_and_subdomain"
76 # broken in werkzeug 2.3 upgrade
77 "test_media_types_method"
79 # erroneous use of pytz
80 # https://github.com/python-restx/flask-restx/issues/620
81 # two fixes are proposed: one fixing just tests, and one removing pytz altogether.
82 # we disable the tests in the meanwhile and let upstream decide
87 pythonImportsCheck = [ "flask_restx" ];
90 description = "Fully featured framework for fast, easy and documented API development with Flask";
91 homepage = "https://github.com/python-restx/flask-restx";
92 changelog = "https://github.com/python-restx/flask-restx/blob/${version}/CHANGELOG.rst";
93 license = licenses.bsd3;