python3Packages.hoptorch: init at 0.1.4
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# tests
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
pyvers,
|
||||
torch,
|
||||
|
||||
# tests
|
||||
llvmPackages,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "hoptorch";
|
||||
version = "0.1.4";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vmoens";
|
||||
repo = "hoptorch";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-rhX81MidgltQ2YQtUdYoK1Qtz7N7x9MpZIKDlZzN+vg=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
pyvers
|
||||
torch
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "hoptorch" ];
|
||||
|
||||
checkInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# torch._inductor.exc.InductorError: CppCompileError: C++ compile error
|
||||
# fatal error: 'omp.h' file not found
|
||||
llvmPackages.openmp
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Small compatibility package for PyTorch higher-order operators";
|
||||
homepage = "https://github.com/vmoens/hoptorch";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
})
|
||||
@@ -7253,6 +7253,8 @@ self: super: with self; {
|
||||
|
||||
hopcroftkarp = callPackage ../development/python-modules/hopcroftkarp { };
|
||||
|
||||
hoptorch = callPackage ../development/python-modules/hoptorch { };
|
||||
|
||||
horimote = callPackage ../development/python-modules/horimote { };
|
||||
|
||||
horizon-eda = callPackage ../development/python-modules/horizon-eda { inherit (pkgs) horizon-eda; };
|
||||
|
||||
Reference in New Issue
Block a user