mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
python3Packages.ultralytics-thop: init at 2.0.14
This commit is contained in:
47
pkgs/development/python-modules/ultralytics-thop/default.nix
Normal file
47
pkgs/development/python-modules/ultralytics-thop/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user