python3Packages.lmfit: init at 1.2.1
Co-authored-by: Jonas Heinrich <onny@project-insanity.org>
This commit is contained in:
parent
32474c2c7b
commit
ef9c36840a
2 changed files with 63 additions and 0 deletions
61
pkgs/development/python-modules/lmfit/default.nix
Normal file
61
pkgs/development/python-modules/lmfit/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
{ lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchPypi,
|
||||||
|
setuptools,
|
||||||
|
setuptools-scm,
|
||||||
|
asteval,
|
||||||
|
numpy,
|
||||||
|
scipy,
|
||||||
|
uncertainties,
|
||||||
|
pytestCheckHook,
|
||||||
|
pandas,
|
||||||
|
matplotlib,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "lmfit";
|
||||||
|
version = "1.2.1";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-AM71vRRb+BtzYwt4kmrySyTxgFQh5iEcpYVYiqfMQVs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5777,6 +5777,8 @@ self: super: with self; {
|
||||||
inherit (pkgs) lmdb;
|
inherit (pkgs) lmdb;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lmfit = callPackage ../development/python-modules/lmfit { };
|
||||||
|
|
||||||
lml = callPackage ../development/python-modules/lml { };
|
lml = callPackage ../development/python-modules/lml { };
|
||||||
|
|
||||||
lmnotify = callPackage ../development/python-modules/lmnotify { };
|
lmnotify = callPackage ../development/python-modules/lmnotify { };
|
||||||
|
|
Loading…
Reference in a new issue