1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # tests 10 django, 11 djangorestframework, 12 pytestCheckHook, 13}: 14 15buildPythonPackage rec { 16 pname = "nested-multipart-parser"; 17 version = "1.5.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "remigermain"; 22 repo = "nested-multipart-parser"; 23 tag = version; 24 hash = "sha256-9IGfYb6mVGkoE/6iDg0ap8c+0vrBDKK1DxzLRyfeWOk="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 nativeCheckInputs = [ 30 django 31 djangorestframework 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "nested_multipart_parser" 37 ]; 38 39 meta = { 40 changelog = "https://github.com/remigermain/nested-multipart-parser/releases/tag/${src.tag}"; 41 description = "Parser for nested data for 'multipart/form'"; 42 homepage = "https://github.com/remigermain/nested-multipart-parser"; 43 license = lib.licenses.mit; 44 }; 45}