about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dendropy/default.nix
blob: be1b705dc02b5e20e5fb4dbfe19f116482a86380 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "dendropy";
  version = "4.5.1";

  src = fetchFromGitHub {
    owner = "jeetsukumaran";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-FP0+fJkkFtSysPxoHXjyMgF8pPin7aRyzmHe9bH8LlM=";
  };

  checkInputs = [
    pytestCheckHook
  ];

  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"
  ];

  pythonImportsCheck = [ "dendropy" ];

  meta = with lib; {
    description = "Python library for phylogenetic computing";
    homepage = "https://dendropy.org/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ unode ];
  };
}