nixpkgs/pkgs/development/python-modules/ete3/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

39 lines
854 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, numpy
, six
, withTreeVisualization ? false
, lxml
, withXmlSupport ? false
, pyqt5
}:
buildPythonPackage rec {
pname = "ete3";
version = "3.1.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BqO3+o7ZAYewdqjbvlsbYqzulCAdPG6CL1X0SWAe9vI=";
};
doCheck = false; # Tests are (i) not 3.x compatible, (ii) broken under 2.7
pythonImportsCheck = [ "ete3" ];
propagatedBuildInputs = [ six numpy ]
++ lib.optional withTreeVisualization pyqt5
++ lib.optional withXmlSupport lxml;
meta = with lib; {
description = "A Python framework for the analysis and visualization of trees";
mainProgram = "ete3";
homepage = "http://etetoolkit.org/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ delehef ];
};
}