python312Packages.x-transformers: init at 1.32.2

This commit is contained in:
ByteSudoer
2024-08-14 08:34:29 +01:00
parent 15d3397f18
commit 3db022d0c2
2 changed files with 48 additions and 0 deletions
@@ -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 ];
};
}
+2
View File
@@ -17479,6 +17479,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 { };