1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "dendropy";
11 version = "4.5.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "jeetsukumaran";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-FP0+fJkkFtSysPxoHXjyMgF8pPin7aRyzmHe9bH8LlM=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 disabledTests = [
26 # FileNotFoundError: [Errno 2] No such file or directory: 'paup'
27 "test_basic_split_count_with_incorrect_rootings_raises_error"
28 "test_basic_split_count_with_incorrect_weight_treatment_raises_error"
29 "test_basic_split_counting_under_different_rootings"
30 "test_group1"
31 # AssertionError: 6 != 5
32 "test_by_num_lineages"
33 # AttributeError: module 'collections' has no attribute 'Iterable'
34 "test_findall_multiple"
35 ];
36
37 pythonImportsCheck = [ "dendropy" ];
38
39 meta = with lib; {
40 description = "Python library for phylogenetic computing";
41 homepage = "https://dendropy.org/";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ unode ];
44 };
45}