Unverified Commit f75325c1 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.x-transformers: 1.44.4 -> 2.1.36 (#390900)

parents 7cea7baa 2c5cfe68
Loading
Loading
Loading
Loading
+21 −12
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  fetchFromGitHub,

  # build-system
  hatchling,

  # dependencies
  einx,
  einops,
  loguru,
  packaging,
  torch,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "x-transformers";
  version = "1.44.4";
  version = "2.1.36";
  pyproject = true;

  src = fetchPypi {
    pname = "x_transformers";
    inherit version;
    hash = "sha256-m6Vx/D4rTur4n/DqWEAjD7jK43wEgwhdrQi8+ndsN+E=";
  src = fetchFromGitHub {
    owner = "lucidrains";
    repo = "x-transformers";
    tag = version;
    hash = "sha256-/L0nzpOG6kbBiujaHsZvb6iakA22BIccvnTvYy1NAa8=";
  };

  postPatch = ''
    sed -i '/setup_requires=\[/,/\],/d' setup.py
  '';

  build-system = [ setuptools ];
  build-system = [ hatchling ];

  dependencies = [
    einx
    einops
    loguru
    packaging
    torch
  ];