17 buildPythonPackage rec {
21 disabled = pythonOlder "3.9";
24 inherit pname version;
25 hash = "sha256-r6C7iDCG/o3JEvweQGb4upr+LuHvmNtkwtduZGehCsc=";
32 propagatedBuildInputs = [
41 pythonImportsCheck = [ "magika" ];
43 passthru.tests.version = testers.testVersion { package = magika; };
46 description = "Magika: Detect file content types with deep learning";
47 homepage = "https://github.com/google/magika";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ mihaimaruseac ];
50 mainProgram = "magika";
51 # Currently, disabling on AArch64 as it onnx runtime crashes on ofborg
52 broken = stdenv.isAarch64 && stdenv.isLinux;