Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
862 B
Nix
51 lines
862 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
colorama,
|
|
onnx,
|
|
packaging,
|
|
sympy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "onnxslim";
|
|
version = "0.1.70";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inisis";
|
|
repo = "OnnxSlim";
|
|
tag = "v${version}";
|
|
hash = "sha256-xShmJR0GWuGmuM0LZ0nBLDoC0m7c0iSWolUGUscVotA=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
colorama
|
|
onnx
|
|
packaging
|
|
sympy
|
|
];
|
|
|
|
pythonImportsCheck = [ "onnxslim" ];
|
|
|
|
# __main__.py: error: the following arguments are required: --model-dir
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Toolkit to Help Optimize Onnx Model";
|
|
homepage = "https://pypi.org/project/onnxslim/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ferrine ];
|
|
};
|
|
}
|