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