Skip to content

Commit

Permalink
python310Packages.onnx: protobuf 3.x -> 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
happysalada committed Sep 16, 2023
1 parent fcbfef1 commit a28fafd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/python-modules/onnx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, pythonOlder
, tabulate
, typing-extensions
, abseil-cpp
}:

let
Expand All @@ -36,6 +37,10 @@ in buildPythonPackage rec {
pybind11
];

buildInputs = [
abseil-cpp
];

propagatedBuildInputs = [
protobuf
numpy
Expand All @@ -61,6 +66,9 @@ in buildPythonPackage rec {
--replace 'include(googletest)' ""
substituteInPlace cmake/unittest.cmake \
--replace 'googletest)' ')'
substituteInPlace CMakeLists.txt \
--replace 'CMAKE_CXX_STANDARD 11' 'CMAKE_CXX_STANDARD 17'
'';

preConfigure = ''
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7509,9 +7509,7 @@ self: super: with self; {

onlykey-solo-python = callPackage ../development/python-modules/onlykey-solo-python { };

onnx = callPackage ../development/python-modules/onnx {
protobuf = protobuf3;
};
onnx = callPackage ../development/python-modules/onnx { };

onnxconverter-common = callPackage ../development/python-modules/onnxconverter-common {
protobuf = protobuf3;
Expand Down

0 comments on commit a28fafd

Please sign in to comment.