Something went wrong. Try again.
lol
Something went wrong. Try again.
1.8 kB · 98 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system hatch-vcs, hatchling,
# dependencies h5py, numpy, wasserstein,
# optional-dependencies igraph, scikit-learn, tensorflow,
# tests pot, pytestCheckHook, tf-keras,}:
buildPythonPackage (finalAttrs: { pname = "energyflow"; version = "1.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "pkomiske"; repo = "EnergyFlow"; tag = "v${finalAttrs.version}"; hash = "sha256-4RzhpeOOty8IaVGByHD+PyeaeWgR7ZF98mSCJYoM9wY="; };
build-system = [ hatch-vcs hatchling ];
dependencies = [ h5py numpy wasserstein ];
optional-dependencies = { all = [ igraph scikit-learn tensorflow ]; archs = [ scikit-learn tensorflow ]; generation = [ igraph ]; };
nativeCheckInputs = [ pot pytestCheckHook tf-keras ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
disabledTests = [ # Issues with array "test_emd_equivalence" "test_gdim" "test_n_jobs" "test_periodic_phi"
# NameError: name '_distance_wrap' is not defined "test_emd_byhand_1_1" "test_emd_return_flow" "test_emde" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # RuntimeError: EMDStatus - Infeasible "test_emd_byhand_1_1" "test_emd_return_flow" "test_emde" ];
pythonImportsCheck = [ "energyflow" ];
meta = { description = "Python package for the EnergyFlow suite of tools"; homepage = "https://energyflow.network/"; changelog = "https://github.com/thaler-lab/EnergyFlow/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ veprbl ]; };})