Merge pull request #91703 from cript0nauta/webargs

This commit is contained in:
Sandro 2021-06-24 12:49:42 +02:00 committed by GitHub
commit a6dfcab2d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 76 additions and 0 deletions

View file

@ -36,5 +36,7 @@ buildPythonPackage rec {
'';
homepage = "https://github.com/marshmallow-code/marshmallow";
license = licenses.mit;
maintainers = with maintainers; [ cript0nauta ];
};
}

View file

@ -0,0 +1,41 @@
{ buildPythonPackage, fetchPypi, lib, isPy27, marshmallow, pytestCheckHook
, pytest-aiohttp, webtest, webtest-aiohttp, flask, django, bottle, tornado
, pyramid, falcon, aiohttp }:
buildPythonPackage rec {
pname = "webargs";
version = "8.0.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0xy6na8axc5wnp2wg3kvqbpl2iv0hx0rsnlrmrgkgp88znx6cmjn";
};
pythonImportsCheck = [
"webargs"
];
propagatedBuildInputs = [ marshmallow ];
checkInputs = [
pytestCheckHook
pytest-aiohttp
webtest
webtest-aiohttp
flask
django
bottle
tornado
pyramid
falcon
aiohttp
];
meta = with lib; {
description = "Declarative parsing and validation of HTTP request objects, with built-in support for popular web frameworks";
homepage = "https://github.com/marshmallow-code/webargs";
license = licenses.mit;
maintainers = with maintainers; [ cript0nauta ];
};
}

View file

@ -0,0 +1,29 @@
{ buildPythonPackage, fetchFromGitHub, lib, isPy27, webtest, invoke, flake8
, aiohttp, pytest-aiohttp, pytestCheckHook }:
buildPythonPackage rec {
pname = "webtest-aiohttp";
version = "2.0.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "sloria";
repo = pname;
rev = version;
sha256 = "1apr1x0wmnc6l8wv67z4dp00fiiygda6rwpxlspfk7nk9zz37q2j";
};
pythonImportsCheck = [
"webtest_aiohttp"
];
propagatedBuildInputs = [ webtest ];
checkInputs = [ invoke flake8 aiohttp pytest-aiohttp pytestCheckHook ];
meta = with lib; {
description = "Provides integration of WebTest with aiohttp.web applications";
homepage = "https://github.com/sloria/webtest-aiohttp";
license = licenses.mit;
maintainers = with maintainers; [ cript0nauta ];
};
}

View file

@ -9026,6 +9026,8 @@ in {
webhelpers = callPackage ../development/python-modules/webhelpers { };
webargs = callPackage ../development/python-modules/webargs { };
webob = callPackage ../development/python-modules/webob { };
weboob = callPackage ../development/python-modules/weboob { };
@ -9042,6 +9044,8 @@ in {
webtest = callPackage ../development/python-modules/webtest { };
webtest-aiohttp = callPackage ../development/python-modules/webtest-aiohttp { };
webthing = callPackage ../development/python-modules/webthing { };
werkzeug = callPackage ../development/python-modules/werkzeug {