2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
aniso8601,
|
|
|
|
jsonschema,
|
|
|
|
flask,
|
|
|
|
importlib-resources,
|
|
|
|
werkzeug,
|
|
|
|
pytz,
|
|
|
|
faker,
|
|
|
|
mock,
|
|
|
|
blinker,
|
|
|
|
py,
|
|
|
|
pytest-flask,
|
|
|
|
pytest-mock,
|
|
|
|
pytest-benchmark,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-restx";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.3.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# Tests not included in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-restx";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "flask-restx";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2021-09-18 10:52:07 +00:00
|
|
|
aniso8601
|
|
|
|
flask
|
2023-11-16 04:20:00 +00:00
|
|
|
importlib-resources
|
2021-09-18 10:52:07 +00:00
|
|
|
jsonschema
|
|
|
|
pytz
|
|
|
|
werkzeug
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
blinker
|
|
|
|
faker
|
|
|
|
mock
|
2023-01-20 10:41:00 +00:00
|
|
|
py
|
2021-09-18 10:52:07 +00:00
|
|
|
pytest-benchmark
|
|
|
|
pytest-flask
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray =
|
|
|
|
[
|
|
|
|
"--benchmark-disable"
|
|
|
|
"--deselect=tests/test_inputs.py::URLTest::test_check"
|
|
|
|
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
|
|
|
|
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
|
|
|
|
]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-06-05 15:53:02 +00:00
|
|
|
"--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check"
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# broken in werkzeug 2.3 upgrade
|
|
|
|
"test_media_types_method"
|
|
|
|
"test_media_types_q"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/python-restx/flask-restx/blob/${version}/CHANGELOG.rst";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.bsd3;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|