summary refs log tree commit diff
path: root/pkgs/applications/science/misc/sasview/default.nix
blob: 45bdeef92bcbdbed9f9d0d8dbba370867bc0c038 (plain) (blame)
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
48
49
50
51
{lib, fetchgit, gcc, python}:

let
  html5 = import ./myHtml5.nix {inherit python;};
  xhtml2pdf = import ./xhtml2pdf.nix {inherit python html5;};
in

python.pkgs.buildPythonApplication rec {
  name = "sasview-${version}";
  version = "4.1.2";

  propagatedBuildInputs = with python.pkgs; [
    bumps
    gcc
    h5py
    html5
    libxslt
    lxml
    matplotlib
    numpy
    pyparsing
    periodictable
    pillow
    pylint
    pyopencl
    pytest
    reportlab
    sasmodels
    scipy
    six
    sphinx
    unittest-xml-reporting
    wxPython
    xhtml2pdf];

  src = fetchgit {
    url = "https://github.com/SasView/sasview.git";
    rev = "v${version}";
    sha256 ="05la54wwzzlkhmj8vkr0bvzagyib6z6mgwqbddzjs5y1wd48vpcx";
  };

  patches = [./pyparsing-fix.patch ./local_config.patch];
  sandbox = true;

  meta = {
    homepage = https://www.sasview.org;
    description = "Fitting and data analysis for small angle scattering data";
    maintainers = with lib.maintainers; [ rprospero ];
    license = lib.licenses.bsd3;
  };
}