depot/third_party/nixpkgs/pkgs/development/python-modules/lmfit/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

56 lines
953 B
Nix

{ lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
asteval,
dill,
numpy,
scipy,
uncertainties,
pytestCheckHook,
pandas,
matplotlib,
}:
buildPythonPackage rec {
pname = "lmfit";
version = "1.3.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-foI668BSN8qA0z0mDO27peJhkMzsn69ZXmgUOQneDJM=";
};
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 ];
};
}