1{ lib 2, buildPythonPackage 3, fetchPypi 4, hatchling 5, pytestCheckHook 6, mock 7, pyyaml 8, six 9}: 10 11buildPythonPackage rec { 12 pname = "python-multipart"; 13 version = "0.0.6"; 14 format = "pyproject"; 15 16 src = fetchPypi { 17 pname = "python_multipart"; 18 inherit version; 19 hash = "sha256-6ZJagLtmhSnxtnx/2wpdrN18v8b7C/8+pEP+Ir3WITI="; 20 }; 21 22 nativeBuildInputs = [ 23 hatchling 24 ]; 25 26 propagatedBuildInputs = [ 27 six 28 ]; 29 30 pythonImportsCheck = [ 31 "multipart" 32 ]; 33 34 preCheck = '' 35 # https://github.com/andrew-d/python-multipart/issues/41 36 substituteInPlace multipart/tests/test_multipart.py \ 37 --replace "yaml.load" "yaml.safe_load" 38 ''; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 mock 43 pyyaml 44 ]; 45 46 meta = with lib; { 47 description = "A streaming multipart parser for Python"; 48 homepage = "https://github.com/andrew-d/python-multipart"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ ]; 51 }; 52}