python3Packages.torchsummary: cleanup, add missing dependencies (#537714)

This commit is contained in:
kirillrdy
2026-07-02 08:11:24 +00:00
committed by GitHub

View File

@@ -2,7 +2,12 @@
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
numpy,
torch,
}:
@@ -10,7 +15,9 @@ buildPythonPackage (finalAttrs: {
pname = "torchsummary";
version = "1.5.1";
pyproject = true;
__structuredAttrs = true;
# No tags on GitHub
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-mBv2ieIuDPf5XHRgAvIKJK0mqmudhhE0oUvGzpIjBZA=";
@@ -18,7 +25,10 @@ buildPythonPackage (finalAttrs: {
build-system = [ setuptools ];
dependencies = [ torch ];
dependencies = [
numpy
torch
];
# no tests in pypi tarball
doCheck = false;