1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, aniso8601
5, jsonschema
6, flask
7, werkzeug
8, pytz
9, faker
10, six
11, enum34
12, isPy27
13, mock
14, blinker
15, pytest-flask
16, pytest-mock
17, pytest-benchmark
18, pytestCheckHook
19}:
20
21buildPythonPackage rec {
22 pname = "flask-restx";
23 version = "0.2.0";
24
25 # Tests not included in PyPI tarball
26 src = fetchFromGitHub {
27 owner = "python-restx";
28 repo = pname;
29 rev = version;
30 sha256 = "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7";
31 };
32
33 propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
34 ++ lib.optionals isPy27 [ enum34 ];
35
36 checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ];
37
38 pytestFlagsArray = [
39 "--benchmark-disable"
40 "--deselect=tests/test_inputs.py::URLTest::test_check"
41 "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
42 ];
43
44 meta = with lib; {
45 homepage = "https://flask-restx.readthedocs.io/en/${version}/";
46 description = "Fully featured framework for fast, easy and documented API development with Flask";
47 license = licenses.bsd3;
48 maintainers = [ maintainers.marsam ];
49 };
50}