18 buildPythonPackage rec {
22 # Due to Protobuf packaging issues this build of Onnx with Python 2 gives
24 # Also support for Python 2 will be deprecated from Onnx v1.8.
28 inherit pname version;
29 sha256 = "9d65c52009a90499f8c25fdfe5acda3ac88efe0788eb1d5f2575a989277145fb";
32 nativeBuildInputs = [ cmake ];
34 propagatedBuildInputs = [
39 ] ++ lib.optional (pythonOlder "3.5") [ typing ];
49 chmod +x tools/protoc-gen-mypy.sh.in
50 patchShebangs tools/protoc-gen-mypy.sh.in tools/protoc-gen-mypy.py
54 export MAX_JOBS=$NIX_BUILD_CORES
57 # The executables are just utility scripts that aren't too important
62 # The setup.py does all the configuration
63 dontUseCmakeConfigure = true;
66 homepage = "http://onnx.ai";
67 description = "Open Neural Network Exchange";
68 license = lib.licenses.mit;
69 maintainers = [ lib.maintainers.acairncross ];