9 buildPythonPackage rec {
12 format = "setuptools";
14 disabled = pythonOlder "3.7";
17 inherit pname version;
18 hash = "sha256-ZrVs1kdL9B2MVGYDR9N6/MP30ZcGSN42XBAu93VIqts=";
21 nativeCheckInputs = [ pytestCheckHook ];
23 pythonImportsCheck = [ "filetype" ];
26 # https://github.com/h2non/filetype.py/issues/119
27 "test_guess_memoryview"
28 "test_guess_extension_memoryview"
29 "test_guess_mime_memoryview"
30 # https://github.com/h2non/filetype.py/issues/128
35 # We don't care about benchmarks
36 "tests/test_benchmark.py"
40 description = "Infer file type and MIME type of any file/buffer";
41 mainProgram = "filetype";
42 homepage = "https://github.com/h2non/filetype.py";
43 license = licenses.mit;
44 maintainers = with maintainers; [ dotlambda ];