18 buildPythonPackage rec {
22 disabled = pythonOlder "3.9";
25 inherit pname version;
26 hash = "sha256-Q9wRU6FjcyciWmJqFVDAo5Wh1F6jPsH11GubCAI4vuA=";
29 nativeBuildInputs = [ poetry-core ];
31 propagatedBuildInputs = [
40 pythonImportsCheck = [ "magika" ];
42 passthru.tests.version = testers.testVersion { package = magika; };
45 description = "Magika: Detect file content types with deep learning";
46 homepage = "https://github.com/google/magika";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ mihaimaruseac ];
49 mainProgram = "magika";
50 # Currently, disabling on AArch64 as it onnx runtime crashes on ofborg
51 broken = stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux;