Files
nixpkgs/pkgs/development/python-modules/torchprofile/default.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

49 lines
873 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
torch,
torchvision,
}:
buildPythonPackage rec {
pname = "torchprofile";
version = "0.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "zhijian-liu";
repo = "torchprofile";
tag = "v${version}";
hash = "sha256-ynRrGHzroyv8T8fggJAag7u6XBOx+uN49HSIe46Bcek=";
};
build-system = [
setuptools
];
pythonRelaxDeps = [
"torchvision"
];
dependencies = [
numpy
torch
torchvision
];
pythonImportsCheck = [
"torchprofile"
];
meta = {
changelog = "https://github.com/zhijian-liu/torchprofile/releases/tag/${src.tag}";
description = "General and accurate MACs / FLOPs profiler for PyTorch models";
homepage = "https://github.com/zhijian-liu/torchprofile";
license = lib.licenses.mit;
maintainers = [ ];
};
}