Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
745 B · 33 lines
Nix
12345678910111213141516171819202122232425262728293031323334{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, torch,}:
buildPythonPackage rec { pname = "lion-pytorch"; version = "0.2.3"; format = "setuptools"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "lucidrains"; repo = "lion-pytorch"; tag = version; hash = "sha256-RHixPIZ1kCawWQiqYqLY+c3r6Rg86LKm3tQTyW2BNFU="; };
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 ]; };}