10 buildPythonPackage rec {
11 pname = "flask-expects-json";
13 format = "setuptools";
15 src = fetchFromGitHub {
16 owner = "Fischerfredl";
19 hash = "sha256-CUxuwqjjAb9Fy6xWtX1WtSANYaYr5//vY8k89KghYoQ=";
22 propagatedBuildInputs = [
25 ] ++ flask.optional-dependencies.async;
27 nativeCheckInputs = [ pytestCheckHook ];
29 pythonImportsCheck = [ "flask_expects_json" ];
32 # https://github.com/Fischerfredl/flask-expects-json/issues/26
34 "test_default_behaviour"
35 "test_default_gets_validated"
36 "test_format_validation_rejection"
37 "test_ignore_multiple"
39 "test_valid_decorator_no_schema_async"
40 "test_valid_decorator"
41 "test_validation_invalid"
45 homepage = "https://github.com/fischerfredl/flask-expects-json";
46 description = "Decorator for REST endpoints in flask. Validate JSON request data";
47 license = licenses.mit;