Skip to content

Commit

Permalink
onnx: 1.6.0 -> 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
acairncross authored and jonringer committed May 11, 2020
1 parent 6bcb1de commit d020db4
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions pkgs/development/python-modules/onnx/default.nix
Expand Up @@ -18,29 +18,18 @@

buildPythonPackage rec {
pname = "onnx";
version = "1.6.0";
version = "1.7.0";

# Due to Protobuf packaging issues this build of Onnx with Python 2 gives
# errors on import
# errors on import.
# Also support for Python 2 will be deprecated from Onnx v1.8.
disabled = isPy27;

src = fetchPypi {
inherit pname version;
sha256 = "0ig33jl3591041lyylxp52yi20rfrcqx3i030hd6al8iabzc721v";
sha256 = "0j6rgfbhsw3a8id8pyg18y93k68lbjbj1kq6qia36h69f6pvlyjy";
};

# Remove the unqualified requirement for the typing package for running the
# tests. typing is already required for the installation, where it is
# correctly qualified so as to only be required for sufficiently old Python
# versions.
# This patch should be in the next release (>1.6).
patches = [
(fetchpatch {
url = "https://github.com/onnx/onnx/commit/c963586d0f8dd5740777b2fd06f04ec60816de9f.patch";
sha256 = "1hl26cw5zckc91gmh0bdah87jyprccxiw0f4i5h1gwkq28hm6wbj";
})
];

nativeBuildInputs = [ cmake ];

propagatedBuildInputs = [
Expand All @@ -61,13 +50,17 @@ buildPythonPackage rec {
patchShebangs tools/protoc-gen-mypy.py
'';

preBuild = ''
export MAX_JOBS=$NIX_BUILD_CORES
'';

# The executables are just utility scripts that aren't too important
postInstall = ''
rm -r $out/bin
'';

# The setup.py does all the configuration (running CMake)
dontConfigure = true;
# The setup.py does all the configuration
dontUseCmakeConfigure = true;

meta = {
homepage = "http://onnx.ai";
Expand Down

0 comments on commit d020db4

Please sign in to comment.