8 buildPythonPackage rec {
11 format = "setuptools";
13 disabled = pythonOlder "3.7";
16 inherit pname version;
17 hash = "sha256-ZrVs1kdL9B2MVGYDR9N6/MP30ZcGSN42XBAu93VIqts=";
24 pythonImportsCheck = [
29 # https://github.com/h2non/filetype.py/issues/119
30 "test_guess_memoryview"
31 "test_guess_extension_memoryview"
32 "test_guess_mime_memoryview"
33 # https://github.com/h2non/filetype.py/issues/128
38 # We don't care about benchmarks
39 "tests/test_benchmark.py"
43 description = "Infer file type and MIME type of any file/buffer";
44 mainProgram = "filetype";
45 homepage = "https://github.com/h2non/filetype.py";
46 license = licenses.mit;
47 maintainers = with maintainers; [ dotlambda ];