nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # dependencies
11 asteval,
12 dill,
13 numpy,
14 scipy,
15 uncertainties,
16
17 # tests
18 pytestCheckHook,
19 pytest-cov-stub,
20 matplotlib,
21 pandas,
22}:
23
24buildPythonPackage rec {
25 pname = "lmfit";
26 version = "1.3.4";
27 pyproject = true;
28
29 src = fetchPypi {
30 inherit pname version;
31 hash = "sha256-PCLCjEP3F/bFtKO9geiTohSXOcJqWSwEby4zwjz75Jc=";
32 };
33
34 build-system = [
35 setuptools
36 setuptools-scm
37 ];
38
39 dependencies = [
40 asteval
41 dill
42 numpy
43 scipy
44 uncertainties
45 ];
46
47 nativeCheckInputs = [
48 pytestCheckHook
49 pytest-cov-stub
50 matplotlib
51 pandas
52 ];
53
54 pythonImportsCheck = [ "lmfit" ];
55
56 disabledTests = [ "test_check_ast_errors" ];
57
58 meta = {
59 description = "Least-Squares Minimization with Bounds and Constraints";
60 homepage = "https://lmfit.github.io/lmfit-py/";
61 changelog = "https://github.com/lmfit/lmfit-py/releases/tag/${version}";
62 license = lib.licenses.bsd3;
63 maintainers = with lib.maintainers; [ doronbehar ];
64 };
65}