python38Packages.flask-restx: init at 0.2.0

This commit is contained in:
Mario Rodas 2020-08-13 23:22:00 -05:00
parent 67d762390e
commit 294e42e595
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aniso8601
, jsonschema
, flask
, werkzeug
, pytz
, faker
, six
, enum34
, isPy27
, mock
, blinker
, pytest-flask
, pytest-mock
, pytest-benchmark
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flask-restx";
version = "0.2.0";
# Tests not included in PyPI tarball
src = fetchFromGitHub {
owner = "python-restx";
repo = pname;
rev = version;
sha256 = "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7";
};
propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
++ lib.optionals isPy27 [ enum34 ];
checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ];
pytestFlagsArray = [
"--benchmark-disable"
"--deselect=tests/test_inputs.py::URLTest::test_check"
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
];
meta = with lib; {
homepage = "https://flask-restx.readthedocs.io/en/${version}/";
description = "Fully featured framework for fast, easy and documented API development with Flask";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
};
}

View File

@ -4012,6 +4012,8 @@ in {
flask-restplus = callPackage ../development/python-modules/flask-restplus { };
flask-restx = callPackage ../development/python-modules/flask-restx { };
flask-reverse-proxy-fix = callPackage ../development/python-modules/flask-reverse-proxy-fix { };
flask_script = callPackage ../development/python-modules/flask-script { };