1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 isPy27,
6 marshmallow,
7 pytestCheckHook,
8 pytest-aiohttp,
9 webtest,
10 webtest-aiohttp,
11 flask,
12 django,
13 bottle,
14 tornado,
15 pyramid,
16 falcon,
17 aiohttp,
18}:
19
20buildPythonPackage rec {
21 pname = "webargs";
22 version = "8.4.0";
23 format = "setuptools";
24 disabled = isPy27;
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-6pk2ghSkzmE5JL6Z1x21jCaWMele/0+gm3NU5S3ABqU=";
29 };
30
31 pythonImportsCheck = [ "webargs" ];
32
33 propagatedBuildInputs = [ marshmallow ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 pytest-aiohttp
38 webtest
39 webtest-aiohttp
40 flask
41 django
42 bottle
43 tornado
44 pyramid
45 falcon
46 aiohttp
47 ];
48
49 meta = with lib; {
50 description = "Declarative parsing and validation of HTTP request objects, with built-in support for popular web frameworks";
51 homepage = "https://github.com/marshmallow-code/webargs";
52 license = licenses.mit;
53 maintainers = with maintainers; [ cript0nauta ];
54 };
55}