python3Packages.flask-expects-json: run some more tests

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
This commit is contained in:
K900 2023-03-11 09:19:57 +03:00
parent d165f35883
commit e78f2518fc

View File

@ -3,6 +3,7 @@
, fetchFromGitHub
, flask
, jsonschema
, pytestCheckHook
}:
buildPythonPackage rec {
@ -17,10 +18,31 @@ buildPythonPackage rec {
hash = "sha256-CUxuwqjjAb9Fy6xWtX1WtSANYaYr5//vY8k89KghYoQ=";
};
propagatedBuildInputs = [ flask jsonschema ];
propagatedBuildInputs = [
flask
jsonschema
] ++ flask.optional-dependencies.async;
# tests aren't included in sdist and don't pass on current flask
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"flask_expects_json"
];
disabledTests = [
# https://github.com/Fischerfredl/flask-expects-json/issues/26
"test_check_mimetype"
"test_default_behaviour"
"test_default_gets_validated"
"test_format_validation_rejection"
"test_ignore_multiple"
"test_ignore_one"
"test_valid_decorator_no_schema_async"
"test_valid_decorator"
"test_validation_invalid"
];
meta = with lib; {
homepage = "https://github.com/fischerfredl/flask-expects-json";