9 buildPythonPackage rec {
10 pname = "flask-expects-json";
12 format = "setuptools";
14 src = fetchFromGitHub {
15 owner = "Fischerfredl";
18 hash = "sha256-CUxuwqjjAb9Fy6xWtX1WtSANYaYr5//vY8k89KghYoQ=";
21 propagatedBuildInputs = [
24 ] ++ flask.optional-dependencies.async;
30 pythonImportsCheck = [
35 # https://github.com/Fischerfredl/flask-expects-json/issues/26
37 "test_default_behaviour"
38 "test_default_gets_validated"
39 "test_format_validation_rejection"
40 "test_ignore_multiple"
42 "test_valid_decorator_no_schema_async"
43 "test_valid_decorator"
44 "test_validation_invalid"
48 homepage = "https://github.com/fischerfredl/flask-expects-json";
49 description = "Decorator for REST endpoints in flask. Validate JSON request data.";
50 license = licenses.mit;