{ lib , buildPythonPackage , fetchPypi , python }: buildPythonPackage rec { pname = "filetype"; version = "1.0.9"; src = fetchPypi { inherit pname version; sha256 = "7124e1bc6a97ffc7c6bead5b8fb2e129baf312a9e60db5772bc27c741799d475"; }; checkPhase = '' ${python.interpreter} -m unittest discover ''; meta = with lib; { description = "Infer file type and MIME type of any file/buffer"; homepage = "https://github.com/h2non/filetype.py"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; }