1{ buildPythonPackage, fetchPypi, lib, isPy27, marshmallow, pytestCheckHook
2, pytest-aiohttp, webtest, webtest-aiohttp, flask, django, bottle, tornado
3, pyramid, falcon, aiohttp }:
4
5buildPythonPackage rec {
6 pname = "webargs";
7 version = "8.2.0";
8 disabled = isPy27;
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "sha256-mdaJQMRS4HcmSFoV/vQ/EviubAxbORvLp2Bl1FJ/uF0=";
13 };
14
15 pythonImportsCheck = [
16 "webargs"
17 ];
18
19 propagatedBuildInputs = [ marshmallow ];
20
21 checkInputs = [
22 pytestCheckHook
23 pytest-aiohttp
24 webtest
25 webtest-aiohttp
26 flask
27 django
28 bottle
29 tornado
30 pyramid
31 falcon
32 aiohttp
33 ];
34
35 meta = with lib; {
36 description = "Declarative parsing and validation of HTTP request objects, with built-in support for popular web frameworks";
37 homepage = "https://github.com/marshmallow-code/webargs";
38 license = licenses.mit;
39 maintainers = with maintainers; [ cript0nauta ];
40 };
41}