9 buildPythonPackage rec {
10 pname = "lion-pytorch";
12 format = "setuptools";
13 disabled = pythonOlder "3.6";
15 src = fetchFromGitHub {
17 repo = "lion-pytorch";
18 rev = "refs/tags/${version}";
19 hash = "sha256-hOPTuXdTrTi/Thv3/5IYqkgH+5cFdzyK1Fshus8u5n0=";
22 propagatedBuildInputs = [ torch ];
24 pythonImportsCheck = [ "lion_pytorch" ];
25 doCheck = false; # no tests currently
28 description = "Optimizer tuned by Google Brain using genetic algorithms";
29 homepage = "https://github.com/lucidrains/lion-pytorch";
30 license = licenses.mit;
31 maintainers = with maintainers; [ bcdarwin ];