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