summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/curvefitgui/default.nix
blob: 29502f64e95c391cb3c315c4cde8fb68f7bd5a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # depedencies
  numpy,
  scipy,
  pyqt5,
  matplotlib,
}:

buildPythonPackage {
  pname = "curvefitgui";
  version = "0-unstable-2021-08-25";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "moosepy";
    repo = "curvefitgui";
    rev = "5f1e7f3b95cd77d10bd8183c9a501e47ff94fad7";
    hash = "sha256-oK0ROKxh/91OrHhuufG6pvc2EMBeMP8R5O+ED2thyW8=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    numpy
    scipy
    pyqt5
    matplotlib
  ];

  pythonImportsCheck = [ "curvefitgui" ];

  meta = {
    description = "Graphical interface to the non-linear curvefit function scipy.optimise.curve_fit";
    homepage = "https://github.com/moosepy/curvefitgui";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}