depot/third_party/nixpkgs/pkgs/development/python-modules/lmfit/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

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.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Mb7q4fAnwbjBTc1/LoSIqAt1+zied/ymd1Sb3C/ll7s=";
};
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 ];
};
}