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