depot/third_party/nixpkgs/pkgs/development/python-modules/onnxruntime-tools/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

50 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, coloredlogs
, numpy
, onnx
, packaging
, psutil
, py-cpuinfo
, py3nvml
, sympy
}:
buildPythonPackage rec {
pname = "onnxruntime-tools";
version = "1.7.0";
format = "wheel";
# the build distribution doesn't work at all, it seems to expect the same structure
# as the github source repo.
# The github source wasn't immediately obvious how to build for this subpackage.
src = fetchPypi {
pname = "onnxruntime_tools";
inherit version;
format = "wheel";
dist = "py3";
python = "py3";
hash = "sha256-Hf+Ii1xIKsW8Yn8S4QhEX+/LPWAMQ/Y2M5dTFv5hetg=";
};
propagatedBuildInputs = [
coloredlogs
numpy
onnx
packaging
psutil
py-cpuinfo
py3nvml
sympy
];
pythonImportsCheck = [ "onnxruntime_tools" ];
meta = with lib; {
description = "Transformers Model Optimization Tool of ONNXRuntime";
homepage = "https://pypi.org/project/onnxruntime-tools/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ happysalada ];
};
}