2020-08-14 05:22:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aniso8601
|
|
|
|
, jsonschema
|
|
|
|
, flask
|
|
|
|
, werkzeug
|
|
|
|
, pytz
|
|
|
|
, faker
|
|
|
|
, six
|
|
|
|
, mock
|
|
|
|
, blinker
|
|
|
|
, pytest-flask
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-restx";
|
2021-09-11 12:57:47 +01:00
|
|
|
version = "0.5.1";
|
2020-08-14 05:22:00 +01:00
|
|
|
|
|
|
|
# Tests not included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-restx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-11 12:57:47 +01:00
|
|
|
sha256 = "18vrmknyxw6adn62pz3kr9kvazfgjgl4pgimdf8527fyyiwcqy15";
|
2020-08-14 05:22:00 +01:00
|
|
|
};
|
|
|
|
|
2021-09-11 12:57:47 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aniso8601
|
|
|
|
flask
|
|
|
|
jsonschema
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
werkzeug
|
|
|
|
];
|
2020-08-14 05:22:00 +01:00
|
|
|
|
2021-09-11 12:57:47 +01:00
|
|
|
checkInputs = [
|
|
|
|
blinker
|
|
|
|
faker
|
|
|
|
mock
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-flask
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-08-14 05:22:00 +01:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--benchmark-disable"
|
|
|
|
"--deselect=tests/test_inputs.py::URLTest::test_check"
|
|
|
|
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
|
2020-12-10 04:20:00 +00:00
|
|
|
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
|
2020-08-14 05:22:00 +01:00
|
|
|
];
|
|
|
|
|
2021-07-18 11:26:49 +01:00
|
|
|
pythonImportsCheck = [ "flask_restx" ];
|
2021-07-02 12:06:54 +01:00
|
|
|
|
2020-08-14 05:22:00 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://flask-restx.readthedocs.io/en/${version}/";
|
|
|
|
description = "Fully featured framework for fast, easy and documented API development with Flask";
|
2021-05-02 12:37:21 +01:00
|
|
|
changelog = "https://github.com/python-restx/flask-restx/raw/${version}/CHANGELOG.rst";
|
2020-08-14 05:22:00 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|