Merge pull request #123042 from fabaff/fix-dendropy

python3Packages.dendropy: 4.4.0 -> 4.5.1

authored by Fabian Affolter and committed by GitHub a2c3ea5b fc63be7a

+21 -19
+21 -19
pkgs/development/python-modules/dendropy/default.nix
··· 1 1 { lib 2 - , pkgs 3 2 , buildPythonPackage 4 3 , fetchFromGitHub 5 - , pytest 4 + , pytestCheckHook 6 5 }: 7 6 8 7 buildPythonPackage rec { 9 - pname = "DendroPy"; 10 - version = "4.4.0"; 8 + pname = "dendropy"; 9 + version = "4.5.1"; 11 10 12 - # tests are incorrectly packaged in pypi version 13 11 src = fetchFromGitHub { 14 12 owner = "jeetsukumaran"; 15 13 repo = pname; 16 14 rev = "v${version}"; 17 - sha256 = "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"; 15 + sha256 = "sha256-FP0+fJkkFtSysPxoHXjyMgF8pPin7aRyzmHe9bH8LlM="; 18 16 }; 19 17 20 - preCheck = '' 21 - # Needed for unicode python tests 22 - export LC_ALL="en_US.UTF-8" 23 - cd tests # to find the 'support' module 24 - ''; 18 + checkInputs = [ 19 + pytestCheckHook 20 + ]; 25 21 26 - checkInputs = [ pytest pkgs.glibcLocales ]; 22 + disabledTests = [ 23 + # FileNotFoundError: [Errno 2] No such file or directory: 'paup' 24 + "test_basic_split_count_with_incorrect_rootings_raises_error" 25 + "test_basic_split_count_with_incorrect_weight_treatment_raises_error" 26 + "test_basic_split_counting_under_different_rootings" 27 + "test_group1" 28 + # AssertionError: 6 != 5 29 + "test_by_num_lineages" 30 + ]; 27 31 28 - checkPhase = '' 29 - pytest -k 'not test_dataio_nexml_reader_tree_list and not test_pscores_with' 30 - ''; 32 + pythonImportsCheck = [ "dendropy" ]; 31 33 32 - meta = { 34 + meta = with lib; { 35 + description = "Python library for phylogenetic computing"; 33 36 homepage = "https://dendropy.org/"; 34 - description = "A Python library for phylogenetic computing"; 35 - maintainers = with lib.maintainers; [ unode ]; 36 - license = lib.licenses.bsd3; 37 + license = licenses.bsd3; 38 + maintainers = with maintainers; [ unode ]; 37 39 }; 38 40 }