mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
106 lines
1.8 KiB
Nix
106 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# dependencies
|
|
aistore,
|
|
boto3,
|
|
einops,
|
|
fsspec,
|
|
h5py,
|
|
huggingface-hub,
|
|
hydra-core,
|
|
loguru,
|
|
numpy,
|
|
pandas,
|
|
psutil,
|
|
pyvista,
|
|
rtree,
|
|
submitit,
|
|
torch,
|
|
trimesh,
|
|
typer,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "emmiai-noether";
|
|
version = "2026.4.0";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Emmi-AI";
|
|
repo = "noether";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ySQxI0n4mPKio7tlRkRRdSq/ieIigznur2CZhJfbyLs=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"numpy"
|
|
];
|
|
dependencies = [
|
|
aistore
|
|
boto3
|
|
einops
|
|
fsspec
|
|
h5py
|
|
huggingface-hub
|
|
hydra-core
|
|
loguru
|
|
numpy
|
|
pandas
|
|
psutil
|
|
pyvista
|
|
rtree
|
|
submitit
|
|
torch
|
|
trimesh
|
|
typer
|
|
];
|
|
|
|
pythonImportsCheck = [ "noether" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Checks if code.tar.gz exists
|
|
"test_train_pipeline_copies_code"
|
|
|
|
# Fails to properly count the number of cores in the sandbox
|
|
"test_total_cpu_count_fallback"
|
|
"test_total_cpu_count_linux"
|
|
"test_total_cpu_count_mac"
|
|
"test_total_cpu_count_windows"
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# flaky: assert 0.32007395901018754 == 0.3 ± 0.02
|
|
"test_real_time_accuracy"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Deep-Learning framework for Engineering AI";
|
|
homepage = "https://github.com/Emmi-AI/noether";
|
|
changelog = "https://github.com/Emmi-AI/noether/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.enpl;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
})
|