python3Packages.opt-einsum-fx: init at 0.1.4

This commit is contained in:
Gaetan Lepage
2026-06-12 23:21:11 +00:00
parent 0461d48821
commit 89cf57284e
2 changed files with 54 additions and 0 deletions
@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
opt-einsum,
torch,
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "opt-einsum-fx";
version = "0.1.4";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Linux-cpp-lisp";
repo = "opt_einsum_fx";
tag = "v${finalAttrs.version}";
hash = "sha256-HamDghqmdX4Q+4zXQvCly588p3TaYFCSnzgEKLVMXSo=";
};
build-system = [
setuptools
];
dependencies = [
opt-einsum
torch
];
pythonImportsCheck = [ "opt_einsum_fx" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Einsum optimization using opt_einsum and PyTorch FX graph rewriting";
homepage = "https://github.com/Linux-cpp-lisp/opt_einsum_fx";
changelog = "https://github.com/Linux-cpp-lisp/opt_einsum_fx/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
+2
View File
@@ -12052,6 +12052,8 @@ self: super: with self; {
opt-einsum = callPackage ../development/python-modules/opt-einsum { };
opt-einsum-fx = callPackage ../development/python-modules/opt-einsum-fx { };
optax = callPackage ../development/python-modules/optax { };
optiland = callPackage ../development/python-modules/optiland { };