python3Packages.torchsummary: cleanup, add missing dependencies

This commit is contained in:
Gaetan Lepage
2026-06-30 22:42:44 +00:00
parent ef02f99a7e
commit e59c0bb38b

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;