diff --git a/pkgs/development/python-modules/webargs/default.nix b/pkgs/development/python-modules/webargs/default.nix new file mode 100644 index 000000000000..6db909992f48 --- /dev/null +++ b/pkgs/development/python-modules/webargs/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6d73b8d73365..1a5e6c888050 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8982,6 +8982,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 { };