16 buildPythonPackage rec {
19 format = "setuptools";
21 disabled = pythonOlder "3.7";
24 inherit pname version;
25 hash = "sha256-Glc5QiTVr//euymeNTxGN+FVaOEa6cUxHGyGo9bQrJc=";
34 propagatedBuildInputs = [
49 "TestFileTypesDataDriven"
51 # Many of the failures below are reported in:
52 # https://github.com/nexB/typecode/issues/36
54 # AssertionError: assert 'application/x-bytecode.python'...
55 "test_compiled_python_1"
58 # fails due to change in file (libmagic) 5.45
59 "test_doc_postscript_eps"
63 pythonImportsCheck = [
68 description = "Comprehensive filetype and mimetype detection using libmagic and Pygments";
69 homepage = "https://github.com/nexB/typecode";
70 changelog = "https://github.com/nexB/typecode/releases/tag/v${version}";
71 license = licenses.asl20;
72 maintainers = with maintainers; [ ];