fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
57 lines
955 B
Nix
57 lines
955 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
setuptools-scm,
|
|
asteval,
|
|
dill,
|
|
numpy,
|
|
scipy,
|
|
uncertainties,
|
|
pytestCheckHook,
|
|
pandas,
|
|
matplotlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lmfit";
|
|
version = "1.3.1";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-vDhiRK29EO8aKixPnRez3vkFVSwKZK74VPCtRswwnMU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml --replace "--cov=lmfit --cov-report html" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
asteval
|
|
dill
|
|
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 ];
|
|
};
|
|
}
|