linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / flask-restx / default.nix
blobf2b7222c3d064f2f1d11c48bce91d201e7b56221
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
21 buildPythonPackage rec {
22   pname = "flask-restx";
23   version = "0.2.0";
25   # Tests not included in PyPI tarball
26   src = fetchFromGitHub {
27     owner = "python-restx";
28     repo = pname;
29     rev = version;
30     sha256 = "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7";
31   };
33   propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
34     ++ lib.optionals isPy27 [ enum34 ];
36   checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ];
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     "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
43   ];
45   meta = with lib; {
46     homepage = "https://flask-restx.readthedocs.io/en/${version}/";
47     description = "Fully featured framework for fast, easy and documented API development with Flask";
48     license = licenses.bsd3;
49     maintainers = [ maintainers.marsam ];
50   };