forked from mirrors/nixpkgs
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, aniso8601
|
|
, jsonschema
|
|
, flask
|
|
, werkzeug
|
|
, pytz
|
|
, faker
|
|
, six
|
|
, mock
|
|
, blinker
|
|
, pytest-flask
|
|
, pytest-mock
|
|
, pytest-benchmark
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-restx";
|
|
version = "0.5.1";
|
|
|
|
# Tests not included in PyPI tarball
|
|
src = fetchFromGitHub {
|
|
owner = "python-restx";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "18vrmknyxw6adn62pz3kr9kvazfgjgl4pgimdf8527fyyiwcqy15";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aniso8601
|
|
flask
|
|
jsonschema
|
|
pytz
|
|
six
|
|
werkzeug
|
|
];
|
|
|
|
checkInputs = [
|
|
blinker
|
|
faker
|
|
mock
|
|
pytest-benchmark
|
|
pytest-flask
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [ "flask_restx" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://flask-restx.readthedocs.io/en/${version}/";
|
|
description = "Fully featured framework for fast, easy and documented API development with Flask";
|
|
changelog = "https://github.com/python-restx/flask-restx/raw/${version}/CHANGELOG.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|