1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "multipart"; 10 version = "0.2.4"; 11 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "06ba205360bc7096fefe618e4f1e9b2cdb890b4f2157053a81f386912a2522cb"; 17 }; 18 19 patches = [ 20 (fetchpatch { 21 name = "dont-test-semicolon-separators-in-urlencoded-data.patch"; 22 url = "https://github.com/defnull/multipart/commit/4d4ac6b79c453918ebf40c690e8d57d982ee840b.patch"; 23 hash = "sha256-rMeMhQEhonWAHzy5M8Im5mL6km5a9O0CGVOV+T3UNqo="; 24 }) 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "multipart" ]; 32 33 meta = { 34 description = "Parser for multipart/form-data"; 35 homepage = "https://github.com/defnull/multipart"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ dotlambda ]; 38 }; 39}