nixpkgs/pkgs/development/python-modules/webargs/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

65 lines
1.2 KiB
Nix

{
buildPythonPackage,
fetchPypi,
lib,
pythonAtLeast,
flit-core,
marshmallow,
pytestCheckHook,
pytest-aiohttp,
webtest,
webtest-aiohttp,
flask,
django,
bottle,
tornado,
pyramid,
falcon,
aiohttp,
fetchpatch,
}:
buildPythonPackage rec {
pname = "webargs";
version = "8.7.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-DGF97BntTx/2skfNc4VelJ2HBS1xkAk4tx8Mr9kvGRs=";
};
patches = [
(fetchpatch {
url = "https://github.com/marshmallow-code/webargs/commit/a6a5043ee34b0a22885b3625de6d4fdffc3b715b.patch";
hash = "sha256-EFe76SAklgmBjfM6K8PkB0vHMCSlZ9EKAW9AbnxKmPA=";
})
];
build-system = [ flit-core ];
dependencies = [ marshmallow ];
nativeCheckInputs = [
pytestCheckHook
pytest-aiohttp
webtest
webtest-aiohttp
flask
django
bottle
tornado
pyramid
falcon
aiohttp
];
pythonImportsCheck = [ "webargs" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ cript0nauta ];
};
}