diff options
Diffstat (limited to 'pkgs/development/python-modules/flask-restx/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/flask-restx/default.nix | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/pkgs/development/python-modules/flask-restx/default.nix b/pkgs/development/python-modules/flask-restx/default.nix index 052bf4ac5da3..55f41f6f7737 100644 --- a/pkgs/development/python-modules/flask-restx/default.nix +++ b/pkgs/development/python-modules/flask-restx/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, aniso8601 -, jsonschema -, flask -, importlib-resources -, werkzeug -, pytz -, faker -, mock -, blinker -, py -, pytest-flask -, pytest-mock -, pytest-benchmark -, pytestCheckHook -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + aniso8601, + jsonschema, + flask, + importlib-resources, + werkzeug, + pytz, + faker, + mock, + blinker, + py, + pytest-flask, + pytest-mock, + pytest-benchmark, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aniso8601 @@ -59,14 +58,16 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--benchmark-disable" - "--deselect=tests/test_inputs.py::URLTest::test_check" - "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check" - "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level" - ] ++ lib.optionals stdenv.isDarwin [ - "--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check" - ]; + pytestFlagsArray = + [ + "--benchmark-disable" + "--deselect=tests/test_inputs.py::URLTest::test_check" + "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check" + "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level" + ] + ++ lib.optionals stdenv.isDarwin [ + "--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check" + ]; disabledTests = [ # broken in werkzeug 2.3 upgrade @@ -74,9 +75,7 @@ buildPythonPackage rec { "test_media_types_q" ]; - pythonImportsCheck = [ - "flask_restx" - ]; + pythonImportsCheck = [ "flask_restx" ]; meta = with lib; { description = "Fully featured framework for fast, easy and documented API development with Flask"; |
