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