depot/third_party/nixpkgs/pkgs/development/python-modules/lmfit/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

61 lines
1.1 KiB
Nix

{ lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
asteval,
numpy,
scipy,
uncertainties,
pytestCheckHook,
pandas,
matplotlib,
}:
buildPythonPackage rec {
pname = "lmfit";
version = "1.2.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-BEoFKhGmHaBXYnRQTBfrfigDtBEo4lgh6WYyIH8jyIw=";
};
postPatch = ''
substituteInPlace setup.cfg --replace "--cov=lmfit --cov-report html" ""
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
asteval
numpy
scipy
uncertainties
];
nativeCheckInputs = [
pytestCheckHook
pandas
matplotlib
];
disabledTests = [
# https://github.com/lmfit/lmfit-py/issues/878
"test_emcee_multiprocessing"
"test_explicit_independent_vars"
"test_result_eval_custom_x"
];
meta = with lib; {
description = "Least-Squares Minimization with Bounds and Constraints";
homepage = "https://lmfit-py.readthedocs.io/";
license = licenses.bsd3;
maintainers = with maintainers; [ nomeata ];
};
}