1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 isPy3k,
6 numpy,
7 six,
8 withTreeVisualization ? false,
9 lxml,
10 withXmlSupport ? false,
11 pyqt5,
12}:
13
14buildPythonPackage rec {
15 pname = "ete3";
16 version = "3.1.3";
17 format = "setuptools";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "sha256-BqO3+o7ZAYewdqjbvlsbYqzulCAdPG6CL1X0SWAe9vI=";
22 };
23
24 doCheck = false; # Tests are (i) not 3.x compatible, (ii) broken under 2.7
25 pythonImportsCheck = [ "ete3" ];
26
27 propagatedBuildInputs = [
28 six
29 numpy
30 ] ++ lib.optional withTreeVisualization pyqt5 ++ lib.optional withXmlSupport lxml;
31
32 meta = with lib; {
33 description = "A Python framework for the analysis and visualization of trees";
34 mainProgram = "ete3";
35 homepage = "http://etetoolkit.org/";
36 license = licenses.gpl3Only;
37 maintainers = with maintainers; [ delehef ];
38 };
39}