{ lib, buildPythonPackage, fetchFromGitHub, # build-system hatchling, # dependencies einx, einops, loguru, packaging, torch, # tests pytestCheckHook, }: buildPythonPackage rec { pname = "x-transformers"; version = "2.8.2"; pyproject = true; src = fetchFromGitHub { owner = "lucidrains"; repo = "x-transformers"; tag = version; hash = "sha256-ItMa5CPe53g9XlB2LZsdQJ3s0m0oF6ZQnAInajZeq/w="; }; build-system = [ hatchling ]; dependencies = [ einx einops loguru packaging torch ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "x_transformers" ]; meta = { description = "Concise but fully-featured transformer"; longDescription = '' A simple but complete full-attention transformer with a set of promising experimental features from various papers ''; homepage = "https://github.com/lucidrains/x-transformers"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ ByteSudoer ]; }; }