2018-02-01 23:06:17 +00:00
|
|
|
{ lib
|
|
|
|
, pkgs
|
|
|
|
, buildPythonPackage
|
2018-09-16 16:37:28 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
2018-02-01 23:06:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "DendroPy";
|
2018-06-12 17:46:59 +01:00
|
|
|
version = "4.4.0";
|
2018-02-01 23:06:17 +00:00
|
|
|
|
2018-09-16 16:37:28 +01:00
|
|
|
# tests are incorrectly packaged in pypi version
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeetsukumaran";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9";
|
2018-02-01 23:06:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# Needed for unicode python tests
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
2018-09-16 16:37:28 +01:00
|
|
|
cd tests # to find the 'support' module
|
2018-02-01 23:06:17 +00:00
|
|
|
'';
|
|
|
|
|
2018-09-16 16:37:28 +01:00
|
|
|
checkInputs = [ pytest pkgs.glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest -k 'not test_dataio_nexml_reader_tree_list and not test_pscores_with'
|
|
|
|
'';
|
2018-02-01 23:06:17 +00:00
|
|
|
|
|
|
|
meta = {
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = https://dendropy.org/;
|
2018-02-01 23:06:17 +00:00
|
|
|
description = "A Python library for phylogenetic computing";
|
|
|
|
maintainers = with lib.maintainers; [ unode ];
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|