depot/third_party/nixpkgs/pkgs/development/python-modules/webargs/default.nix

57 lines
1 KiB
Nix

{
buildPythonPackage,
fetchPypi,
lib,
pythonAtLeast,
flit-core,
marshmallow,
pytestCheckHook,
pytest-aiohttp,
webtest,
webtest-aiohttp,
flask,
django,
bottle,
tornado,
pyramid,
falcon,
aiohttp,
}:
buildPythonPackage rec {
pname = "webargs";
version = "8.6.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-uNCYq5K9dMZZ7KcFr6MdaBR18hjLFcHlcnH6IQPAVHo=";
};
build-system = [ flit-core ];
dependencies = [ marshmallow ];
nativeCheckInputs = [
pytestCheckHook
pytest-aiohttp
webtest
webtest-aiohttp
flask
django
bottle
tornado
pyramid
falcon
aiohttp
];
pythonImportsCheck = [ "webargs" ];
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 ];
};
}