python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / python-modules / lmfit / default.nix
blob16046208ea9ae9d3a59c5fc13ce3271928022ac0
2   lib,
3   buildPythonPackage,
4   asteval,
5   dill,
6   fetchPypi,
7   matplotlib,
8   numpy,
9   pandas,
10   pytestCheckHook,
11   pythonOlder,
12   scipy,
13   setuptools-scm,
14   setuptools,
15   uncertainties,
18 buildPythonPackage rec {
19   pname = "lmfit";
20   version = "1.3.2";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-Mb7q4fAnwbjBTc1/LoSIqAt1+zied/ymd1Sb3C/ll7s=";
28   };
30   postPatch = ''
31     substituteInPlace pyproject.toml \
32       --replace-fail "--cov=lmfit --cov-report html" ""
33   '';
35   build-system = [
36     setuptools
37     setuptools-scm
38   ];
40   dependencies = [
41     asteval
42     dill
43     numpy
44     scipy
45     uncertainties
46   ];
48   nativeCheckInputs = [
49     matplotlib
50     pandas
51     pytestCheckHook
52   ];
54   pythonImportsCheck = [ "lmfit" ];
56   disabledTests = [ "test_check_ast_errors" ];
58   meta = with lib; {
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 = licenses.bsd3;
63     maintainers = with maintainers; [ nomeata ];
64   };