1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, aniso8601
6, jsonschema
7, flask
8, werkzeug
9, pytz
10, faker
11, mock
12, blinker
13, py
14, pytest-flask
15, pytest-mock
16, pytest-benchmark
17, pytestCheckHook
18}:
19
20buildPythonPackage rec {
21 pname = "flask-restx";
22 version = "1.1.0";
23 format = "setuptools";
24
25 disabled = pythonOlder "3.7";
26
27 # Tests not included in PyPI tarball
28 src = fetchFromGitHub {
29 owner = "python-restx";
30 repo = pname;
31 rev = "refs/tags/${version}";
32 hash = "sha256-alXuo6TGDX2ko6VIKpAtyrg0EBkxEnC3DabH8GYqEs0=";
33 };
34
35 propagatedBuildInputs = [
36 aniso8601
37 flask
38 jsonschema
39 pytz
40 werkzeug
41 ];
42
43 nativeCheckInputs = [
44 blinker
45 faker
46 mock
47 py
48 pytest-benchmark
49 pytest-flask
50 pytest-mock
51 pytestCheckHook
52 ];
53
54 pytestFlagsArray = [
55 "--benchmark-disable"
56 "--deselect=tests/test_inputs.py::URLTest::test_check"
57 "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
58 "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
59 ];
60
61 pythonImportsCheck = [
62 "flask_restx"
63 ];
64
65 meta = with lib; {
66 description = "Fully featured framework for fast, easy and documented API development with Flask";
67 homepage = "https://github.com/python-restx/flask-restx";
68 changelog = "https://github.com/python-restx/flask-restx/raw/${version}/CHANGELOG.rst";
69 license = licenses.bsd3;
70 maintainers = [ maintainers.marsam ];
71 };
72}