fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
33 lines
760 B
Nix
33 lines
760 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
torch,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lion-pytorch";
|
|
version = "0.1.4";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lucidrains";
|
|
repo = "lion-pytorch";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8LbALBKQ5ACwmLWYUz3GYkkkhhy8emi6n3kgwYdnDSI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|