2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-11-04 12:27:35 +00:00
|
|
|
, pythonOlder
|
2020-08-20 17:08:02 +00:00
|
|
|
, aniso8601
|
|
|
|
, jsonschema
|
|
|
|
, flask
|
|
|
|
, werkzeug
|
|
|
|
, pytz
|
|
|
|
, faker
|
|
|
|
, mock
|
|
|
|
, blinker
|
|
|
|
, pytest-flask
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-restx";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "1.0.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# Tests not included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-restx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-fodoGeVSNw4XZrVt907H20OJQIR8FlfINvEPWOkZQqI=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
flask
|
|
|
|
jsonschema
|
|
|
|
pytz
|
|
|
|
werkzeug
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
checkInputs = [
|
|
|
|
blinker
|
|
|
|
faker
|
|
|
|
mock
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-flask
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--benchmark-disable"
|
|
|
|
"--deselect=tests/test_inputs.py::URLTest::test_check"
|
|
|
|
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
|
2020-12-25 13:55:36 +00:00
|
|
|
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_restx"
|
|
|
|
];
|
2021-07-04 02:40:35 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Fully featured framework for fast, easy and documented API development with Flask";
|
2022-11-04 12:27:35 +00:00
|
|
|
homepage = "https://github.com/python-restx/flask-restx";
|
2021-05-03 20:48:10 +00:00
|
|
|
changelog = "https://github.com/python-restx/flask-restx/raw/${version}/CHANGELOG.rst";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|