mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00:00
python3Packages.torchsummary: cleanup, add missing dependencies
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user