24 buildPythonPackage rec {
25 pname = "flask-restx";
29 disabled = pythonOlder "3.8";
31 # Tests not included in PyPI tarball
32 src = fetchFromGitHub {
33 owner = "python-restx";
35 rev = "refs/tags/${version}";
36 hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI=";
39 build-system = [ setuptools ];
64 "--deselect=tests/test_inputs.py::URLTest::test_check"
65 "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
66 "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
68 ++ lib.optionals stdenv.hostPlatform.isDarwin [
69 "--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check"
73 # broken in werkzeug 2.3 upgrade
74 "test_media_types_method"
76 # erroneous use of pytz
77 # https://github.com/python-restx/flask-restx/issues/620
78 # two fixes are proposed: one fixing just tests, and one removing pytz altogether.
79 # we disable the tests in the meanwhile and let upstream decide
84 pythonImportsCheck = [ "flask_restx" ];
87 description = "Fully featured framework for fast, easy and documented API development with Flask";
88 homepage = "https://github.com/python-restx/flask-restx";
89 changelog = "https://github.com/python-restx/flask-restx/blob/${version}/CHANGELOG.rst";
90 license = licenses.bsd3;