1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "python-mimeparse"; 12 version = "2.0.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "falconry"; 19 repo = "python-mimeparse"; 20 tag = version; 21 hash = "sha256-4LdfxVOioiyjeZjxCrvOELG+mJ4YOX4CUn+CXYWCtOo="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 meta = with lib; { 29 description = "Module provides basic functions for parsing mime-type names and matching them against a list of media-ranges"; 30 homepage = "https://github.com/dbtsai/python-mimeparse"; 31 changelog = "https://github.com/falconry/python-mimeparse/releases/tag/${version}"; 32 license = licenses.mit; 33 maintainers = [ ]; 34 }; 35}