2018-02-01 23:06:17 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2018-09-16 16:37:28 +01:00
|
|
|
, fetchFromGitHub
|
2021-05-14 22:35:34 +01:00
|
|
|
, pytestCheckHook
|
2018-02-01 23:06:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-05-14 22:35:34 +01:00
|
|
|
pname = "dendropy";
|
|
|
|
version = "4.5.1";
|
2018-02-01 23:06:17 +00:00
|
|
|
|
2018-09-16 16:37:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeetsukumaran";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-14 22:35:34 +01:00
|
|
|
sha256 = "sha256-FP0+fJkkFtSysPxoHXjyMgF8pPin7aRyzmHe9bH8LlM=";
|
2018-02-01 23:06:17 +00:00
|
|
|
};
|
|
|
|
|
2021-05-14 22:35:34 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-02-01 23:06:17 +00:00
|
|
|
|
2021-05-14 22:35:34 +01:00
|
|
|
disabledTests = [
|
|
|
|
# FileNotFoundError: [Errno 2] No such file or directory: 'paup'
|
|
|
|
"test_basic_split_count_with_incorrect_rootings_raises_error"
|
|
|
|
"test_basic_split_count_with_incorrect_weight_treatment_raises_error"
|
|
|
|
"test_basic_split_counting_under_different_rootings"
|
|
|
|
"test_group1"
|
|
|
|
# AssertionError: 6 != 5
|
|
|
|
"test_by_num_lineages"
|
|
|
|
];
|
2018-09-16 16:37:28 +01:00
|
|
|
|
2021-05-14 22:35:34 +01:00
|
|
|
pythonImportsCheck = [ "dendropy" ];
|
2018-02-01 23:06:17 +00:00
|
|
|
|
2021-05-14 22:35:34 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for phylogenetic computing";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://dendropy.org/";
|
2021-05-14 22:35:34 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ unode ];
|
2018-02-01 23:06:17 +00:00
|
|
|
};
|
|
|
|
}
|