depot/third_party/nixpkgs/pkgs/development/python-modules/webargs/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

55 lines
1,009 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
isPy27,
marshmallow,
pytestCheckHook,
pytest-aiohttp,
webtest,
webtest-aiohttp,
flask,
django,
bottle,
tornado,
pyramid,
falcon,
aiohttp,
}:
buildPythonPackage rec {
pname = "webargs";
version = "8.4.0";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-6pk2ghSkzmE5JL6Z1x21jCaWMele/0+gm3NU5S3ABqU=";
};
pythonImportsCheck = [ "webargs" ];
propagatedBuildInputs = [ marshmallow ];
nativeCheckInputs = [
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 ];
};
}