python310Packages.torchinfo: 1.6.5 -> 1.7.0
This commit is contained in:
parent
63f15db529
commit
bd7a553377
@ -1,21 +1,24 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, python
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pytorch
|
||||
, pytestCheckHook
|
||||
, torchvision
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "torchinfo";
|
||||
version = "1.6.5";
|
||||
version = "1.7.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-Vg/TXD+/VMIv1wHywaOuEj4MDTq90lUo99n+Nppu0uI=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "TylerYep";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-SfhFyv5ISbOG3srOK3m9BeSIkA7M8qJTm95GyfdqzcA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -30,14 +33,18 @@ buildPythonPackage rec {
|
||||
disabledTests = [
|
||||
# Skip as it downloads pretrained weights (require network access)
|
||||
"test_eval_order_doesnt_matter"
|
||||
# AssertionError in output
|
||||
"test_google"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "torchvision" ];
|
||||
pythonImportsCheck = [
|
||||
"torchvision"
|
||||
];
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "API to visualize pytorch models";
|
||||
homepage = "https://github.com/TylerYep/torchinfo";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ petterstorvik ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ petterstorvik ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user