python312Packages.x-transformers: init at 1.32.2 (#332726)

This commit is contained in:
OTABI Tomoya 2024-11-19 18:03:49 +09:00 committed by GitHub
commit 05d55345e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
einops,
torch,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "x-transformers";
version = "1.32.2";
pyproject = true;
src = fetchPypi {
pname = "x_transformers";
inherit version;
hash = "sha256-NUIlJ+N2/6kz3rI0oc7bfYVWnMkZhvfljQ6zSwBPkWo=";
};
postPatch = ''
sed -i '/setup_requires=\[/,/\],/d' setup.py
'';
build-system = [ setuptools ];
dependencies = [
einops
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 ];
};
}

View File

@ -17867,6 +17867,8 @@ self: super: with self; {
wyoming = callPackage ../development/python-modules/wyoming { };
x-transformers = callPackage ../development/python-modules/x-transformers { };
x-wr-timezone = callPackage ../development/python-modules/x-wr-timezone { };
x11-hash = callPackage ../development/python-modules/x11-hash { };