python3Packages.ultralytics-thop: init at 2.0.14

This commit is contained in:
osbm
2025-03-08 17:44:20 +03:00
parent e9b255a8c4
commit 5c7790955a
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
numpy,
torch,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ultralytics-thop";
version = "2.0.14";
pyproject = true;
src = fetchFromGitHub {
owner = "ultralytics";
repo = "thop";
tag = "v${version}";
hash = "sha256-Xn01zh0/oaMPqH0FPDKElE0q7di3sDrXYcXCg6I/89E=";
};
build-system = [ setuptools ];
dependencies = [
numpy
torch
];
pythonImportsCheck = [ "thop" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://github.com/ultralytics/thop";
changelog = "https://github.com/ultralytics/thop/releases/tag/v${version}";
description = "Profile PyTorch models by computing the number of Multiply-Accumulate Operations (MACs) and parameters";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ osbm ];
};
}

View File

@@ -17934,6 +17934,8 @@ self: super: with self; {
ultraheat-api = callPackage ../development/python-modules/ultraheat-api { };
ultralytics-thop = callPackage ../development/python-modules/ultralytics-thop { };
umalqurra = callPackage ../development/python-modules/umalqurra { };
umap-learn = callPackage ../development/python-modules/umap-learn { };