mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-07 23:04:00 +01:00
python3Packages.apache-tvm-ffi: init at 0.1.9
This commit is contained in:
parent
58aa5edb02
commit
3f023e4ceb
2 changed files with 71 additions and 0 deletions
69
pkgs/development/python-modules/apache-tvm-ffi/default.nix
Normal file
69
pkgs/development/python-modules/apache-tvm-ffi/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
|
|
@ -834,6 +834,8 @@ self: super: with self; {
|
|||
|
||||
apache-beam = callPackage ../development/python-modules/apache-beam { };
|
||||
|
||||
apache-tvm-ffi = callPackage ../development/python-modules/apache-tvm-ffi { };
|
||||
|
||||
apcaccess = callPackage ../development/python-modules/apcaccess { };
|
||||
|
||||
apeye = callPackage ../development/python-modules/apeye { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue