Files
nixpkgs/pkgs/development/python-modules/lion-pytorch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
745 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
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 ];
};
}