python3Packages.torch-c-dlpack-ext: init at 0.1.9 (#505633)

This commit is contained in:
kirillrdy
2026-04-01 19:24:42 +00:00
committed by GitHub
2 changed files with 42 additions and 0 deletions
@@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
apache-tvm-ffi,
# build-system
setuptools,
# dependencies
torch,
}:
buildPythonPackage (finalAttrs: {
pname = "torch-c-dlpack-ext";
inherit (apache-tvm-ffi) version src;
pyproject = true;
sourceRoot = "${finalAttrs.src.name}/addons/torch_c_dlpack_ext";
build-system = [
apache-tvm-ffi
setuptools
];
dependencies = [
torch
];
pythonImportsCheck = [ "torch_c_dlpack_ext" ];
# No tests
doCheck = false;
meta = {
description = "Ahead-Of-Time (AOT) compiled module to support faster DLPack conversion in DLPack";
homepage = "https://github.com/apache/tvm-ffi/tree/main/addons/torch_c_dlpack_ext";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
+2
View File
@@ -19453,6 +19453,8 @@ self: super: with self; {
torch-bin = callPackage ../development/python-modules/torch/bin { triton = self.triton-bin; };
torch-c-dlpack-ext = callPackage ../development/python-modules/torch-c-dlpack-ext { };
torch-geometric = callPackage ../development/python-modules/torch-geometric { };
# Required to test triton