2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2023-05-24 13:37:59 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
asteval,
|
2024-05-15 15:35:15 +00:00
|
|
|
dill,
|
2023-05-24 13:37:59 +00:00
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
uncertainties,
|
|
|
|
pytestCheckHook,
|
|
|
|
pandas,
|
|
|
|
matplotlib,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lmfit";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.3.1";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-vDhiRK29EO8aKixPnRez3vkFVSwKZK74VPCtRswwnMU=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-05-15 15:35:15 +00:00
|
|
|
substituteInPlace pyproject.toml --replace "--cov=lmfit --cov-report html" ""
|
2023-05-24 13:37:59 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asteval
|
2024-05-15 15:35:15 +00:00
|
|
|
dill
|
2023-05-24 13:37:59 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
uncertainties
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pandas
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Least-Squares Minimization with Bounds and Constraints";
|
|
|
|
homepage = "https://lmfit-py.readthedocs.io/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nomeata ];
|
|
|
|
};
|
|
|
|
}
|