2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2023-05-24 13:37:59 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
asteval,
|
2024-05-15 15:35:15 +00:00
|
|
|
dill,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchPypi,
|
|
|
|
matplotlib,
|
2023-05-24 13:37:59 +00:00
|
|
|
numpy,
|
2024-09-19 14:19:46 +00:00
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-05-24 13:37:59 +00:00
|
|
|
scipy,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools-scm,
|
|
|
|
setuptools,
|
2023-05-24 13:37:59 +00:00
|
|
|
uncertainties,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lmfit";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.3.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Mb7q4fAnwbjBTc1/LoSIqAt1+zied/ymd1Sb3C/ll7s=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-09-19 14:19:46 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "--cov=lmfit --cov-report html" ""
|
2023-05-24 13:37:59 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
2023-05-24 13:37:59 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2023-05-24 13:37:59 +00:00
|
|
|
asteval
|
2024-05-15 15:35:15 +00:00
|
|
|
dill
|
2023-05-24 13:37:59 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
uncertainties
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
2024-09-19 14:19:46 +00:00
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonImportsCheck = [ "lmfit" ];
|
|
|
|
|
|
|
|
disabledTests = [ "test_check_ast_errors" ];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Least-Squares Minimization with Bounds and Constraints";
|
2024-09-19 14:19:46 +00:00
|
|
|
homepage = "https://lmfit.github.io/lmfit-py/";
|
|
|
|
changelog = "https://github.com/lmfit/lmfit-py/releases/tag/${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nomeata ];
|
|
|
|
};
|
|
|
|
}
|