diff --git a/pkgs/development/python-modules/webargs/default.nix b/pkgs/development/python-modules/webargs/default.nix index 21c7af1cfdbc..6f8287733b58 100644 --- a/pkgs/development/python-modules/webargs/default.nix +++ b/pkgs/development/python-modules/webargs/default.nix @@ -2,7 +2,8 @@ buildPythonPackage, fetchPypi, lib, - isPy27, + pythonAtLeast, + flit-core, marshmallow, pytestCheckHook, pytest-aiohttp, @@ -19,18 +20,17 @@ buildPythonPackage rec { pname = "webargs"; - version = "8.4.0"; - format = "setuptools"; - disabled = isPy27; + version = "8.6.0"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-6pk2ghSkzmE5JL6Z1x21jCaWMele/0+gm3NU5S3ABqU="; + hash = "sha256-uNCYq5K9dMZZ7KcFr6MdaBR18hjLFcHlcnH6IQPAVHo="; }; - pythonImportsCheck = [ "webargs" ]; + build-system = [ flit-core ]; - propagatedBuildInputs = [ marshmallow ]; + dependencies = [ marshmallow ]; nativeCheckInputs = [ pytestCheckHook @@ -46,6 +46,8 @@ buildPythonPackage rec { 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";