python312Packages.synergy: fix build

This commit is contained in:
Martin Weinelt
2025-02-09 06:51:06 +01:00
parent 648f16accc
commit d8d8124b5e
@@ -1,31 +1,36 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
numpy,
scipy,
matplotlib,
plotly,
pandas,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "synergy";
version = "1.0.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.5";
# Pypi does not contain unit tests
src = fetchFromGitHub {
owner = "djwooten";
repo = "synergy";
tag = "v${version}";
sha256 = "sha256-df5CBEcRx55/rSMc6ygMVrHbbEcnU1ISJheO+WoBSCI=";
hash = "sha256-df5CBEcRx55/rSMc6ygMVrHbbEcnU1ISJheO+WoBSCI=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
numpy
scipy
matplotlib
@@ -33,7 +38,25 @@ buildPythonPackage rec {
pandas
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
disabledTests =
[
# flaky: hypothesis.errors.FailedHealthCheck
"test_asymptotic_limits"
"test_inverse"
# AssertionError: synthetic_BRAID_reference_1.csv
# E3=0 not in (0.10639582639915163, 1.6900177333904622)
"test_BRAID_fit_bootstrap"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# AssertionError: np.False_ is not true
"test_fit_loewe_antagonism"
];
pythonImportsCheck = [ "synergy" ];
meta = with lib; {