evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / flask-restx / default.nix
bloba817e75cb91bc658ba3b142097703bc691fe17e7
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pythonOlder,
7   aniso8601,
8   jsonschema,
9   flask,
10   importlib-resources,
11   werkzeug,
12   pytz,
13   faker,
14   mock,
15   blinker,
16   py,
17   pytest-flask,
18   pytest-mock,
19   pytest-benchmark,
20   pytestCheckHook,
21   setuptools,
24 buildPythonPackage rec {
25   pname = "flask-restx";
26   version = "1.3.0";
27   pyproject = true;
29   disabled = pythonOlder "3.8";
31   # Tests not included in PyPI tarball
32   src = fetchFromGitHub {
33     owner = "python-restx";
34     repo = "flask-restx";
35     rev = "refs/tags/${version}";
36     hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI=";
37   };
39   build-system = [ setuptools ];
41   dependencies = [
42     aniso8601
43     flask
44     importlib-resources
45     jsonschema
46     pytz
47     werkzeug
48   ];
50   nativeCheckInputs = [
51     blinker
52     faker
53     mock
54     py
55     pytest-benchmark
56     pytest-flask
57     pytest-mock
58     pytestCheckHook
59   ];
61   pytestFlagsArray =
62     [
63       "--benchmark-disable"
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"
67     ]
68     ++ lib.optionals stdenv.hostPlatform.isDarwin [
69       "--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check"
70     ];
72   disabledTests = [
73     # broken in werkzeug 2.3 upgrade
74     "test_media_types_method"
75     "test_media_types_q"
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
80     "test_rfc822_value"
81     "test_iso8601_value"
82   ];
84   pythonImportsCheck = [ "flask_restx" ];
86   meta = with lib; {
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;
91     maintainers = [ ];
92   };