blob: e23011aeb8371031b99c5070128ac2af38c34016 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, torch
}:
buildPythonPackage rec {
pname = "lion-pytorch";
version = "0.1.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "lucidrains";
repo = "lion-pytorch";
rev = "refs/tags/${version}";
hash = "sha256-9hdpRJvCpv3PeC7f0IXpHt6i+e6LiT0QUl5jeDGelQE=";
};
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 ];
};
}
|