Merge pull request #209247 from acairncross/onnx-1.13.0

python3Packages.onnx: 1.12.0 -> 1.13.0
This commit is contained in:
Robert Scott 2023-02-05 11:30:41 +00:00 committed by GitHub
commit 746a47bea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,14 +17,14 @@
buildPythonPackage rec {
pname = "onnx";
version = "1.12.0";
version = "1.13.0";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-E7PnfSdSO52/TzDfyclZRVhZ1eNOkhxE9xLWm4Np7/k=";
sha256 = "sha256-QQs5lQNnhX+XtlCTaB/iSVouI9Y3d6is6vlsVqFtFm4=";
};
nativeBuildInputs = [
@ -50,9 +50,13 @@ buildPythonPackage rec {
postPatch = ''
chmod +x tools/protoc-gen-mypy.sh.in
patchShebangs tools/protoc-gen-mypy.py
substituteInPlace tools/protoc-gen-mypy.sh.in \
--replace "/bin/bash" "${bash}/bin/bash"
patchShebangs tools/protoc-gen-mypy.sh.in
'';
# Set CMAKE_INSTALL_LIBDIR to lib explicitly, because otherwise it gets set
# to lib64 and cmake incorrectly looks for the protobuf library in lib64
preConfigure = ''
export CMAKE_ARGS="-DCMAKE_INSTALL_LIBDIR=lib -DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
'';
preBuild = ''