{ lib, buildPythonPackage, fetchFromGitHub, hatchling, pytestCheckHook, mock, pyyaml, # for passthru.tests asgi-csrf, connexion, fastapi, gradio, starlette, }: buildPythonPackage rec { pname = "python-multipart"; version = "0.0.21"; pyproject = true; src = fetchFromGitHub { owner = "Kludex"; repo = "python-multipart"; tag = version; hash = "sha256-fvqXqQwU0JC4Pkvho5WGe/itlxttk1lKL7R5Vt0oKpA="; }; build-system = [ hatchling ]; pythonImportsCheck = [ "python_multipart" ]; nativeCheckInputs = [ pytestCheckHook mock pyyaml ]; passthru.tests = { inherit asgi-csrf connexion fastapi gradio starlette ; }; meta = { changelog = "https://github.com/Kludex/python-multipart/blob/${src.tag}/CHANGELOG.md"; description = "Streaming multipart parser for Python"; homepage = "https://github.com/Kludex/python-multipart"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ ris ]; }; }