summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ete3/default.nix
blob: afa2185519ef8879aec0d6bf2f66e85bea1242f4 (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
48
{
  lib,
  buildPythonPackage,
  fetchPypi,
  numpy,
  six,
  withTreeVisualization ? false,
  lxml,
  withXmlSupport ? false,
  pyqt5,
  setuptools,
  legacy-cgi,
}:

buildPythonPackage rec {
  pname = "ete3";
  version = "3.1.3";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-BqO3+o7ZAYewdqjbvlsbYqzulCAdPG6CL1X0SWAe9vI=";
  };

  build-system = [
    setuptools
  ];

  doCheck = false; # Tests are (i) not 3.x compatible, (ii) broken under 2.7

  pythonImportsCheck = [ "ete3" ];

  dependencies = [
    six
    numpy
    legacy-cgi
  ]
  ++ lib.optional withTreeVisualization pyqt5
  ++ lib.optional withXmlSupport lxml;

  meta = {
    description = "Python framework for the analysis and visualization of trees";
    mainProgram = "ete3";
    homepage = "http://etetoolkit.org/";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ delehef ];
  };
}