mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:04:06 +01:00
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
cmake,
|
|
cython,
|
|
ninja,
|
|
scikit-build-core,
|
|
setuptools-scm,
|
|
|
|
# dependencies
|
|
typing-extensions,
|
|
|
|
# tests
|
|
numpy,
|
|
pytestCheckHook,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "apache-tvm-ffi";
|
|
version = "0.1.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apache";
|
|
repo = "tvm-ffi";
|
|
tag = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-XnlM//WW2TbjbmzYBq6itJQ7R3J646UMVQUVhV5Afwc=";
|
|
};
|
|
|
|
build-system = [
|
|
cmake
|
|
cython
|
|
ninja
|
|
scikit-build-core
|
|
setuptools-scm
|
|
];
|
|
dontUseCmakeConfigure = true;
|
|
|
|
dependencies = [
|
|
typing-extensions
|
|
];
|
|
|
|
optional-dependencies = {
|
|
cpp = [
|
|
ninja
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [ "tvm_ffi" ];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
pytestCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Open ABI and FFI for Machine Learning Systems";
|
|
changelog = "https://github.com/apache/tvm-ffi/releases/tag/${finalAttrs.src.tag}";
|
|
homepage = "https://github.com/apache/tvm-ffi";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
})
|