python310Packages.lion-pytorch: init at 0.0.7

This commit is contained in:
Ben Darwin
2023-04-13 13:53:10 -04:00
parent c468fa7ac4
commit 758f1e9b83
2 changed files with 34 additions and 0 deletions
@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, torch
}:
buildPythonPackage rec {
pname = "lion-pytorch";
version = "0.0.7";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "lucidrains";
repo = "lion-pytorch";
rev = "refs/tags/${version}";
hash = "sha256-CSb0s3DKv/KpEmCkCR+Y8iwrLdCL9w9Pl6W46cPB420";
};
propagatedBuildInputs = [ torch ];
pythonImportsCheck = [ "lion_pytorch" ];
doCheck = false; # no tests currently
meta = with lib; {
description = "Optimizer tuned by Google Brain using genetic algorithms";
homepage = "https://github.com/lucidrains/lion-pytorch";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}
+2
View File
@@ -5627,6 +5627,8 @@ self: super: with self; {
linuxfd = callPackage ../development/python-modules/linuxfd { };
lion-pytorch = callPackage ../development/python-modules/lion-pytorch { };
liquidctl = callPackage ../development/python-modules/liquidctl { };
lirc = toPythonModule (pkgs.lirc.override {