Files
nixpkgs/pkgs/development/python-modules/onnxslim/default.nix
T
Wolfgang Walther 7353f9979f maintainers: drop ferrine
Not reacting to maintainer pings, not part of the nixpkgs-maintainers
team.

Did not react to
https://github.com/NixOS/nixpkgs/pull/450683#issuecomment-3415978893.
2025-12-02 16:34:12 +01:00

50 lines
809 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;
};
}