Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 38 lines 856 B view raw
1{ lib 2, pkgs 3, buildPythonPackage 4, fetchFromGitHub 5, pytest 6}: 7 8buildPythonPackage rec { 9 pname = "DendroPy"; 10 version = "4.4.0"; 11 12 # tests are incorrectly packaged in pypi version 13 src = fetchFromGitHub { 14 owner = "jeetsukumaran"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"; 18 }; 19 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 ''; 25 26 checkInputs = [ pytest pkgs.glibcLocales ]; 27 28 checkPhase = '' 29 pytest -k 'not test_dataio_nexml_reader_tree_list and not test_pscores_with' 30 ''; 31 32 meta = { 33 homepage = https://dendropy.org/; 34 description = "A Python library for phylogenetic computing"; 35 maintainers = with lib.maintainers; [ unode ]; 36 license = lib.licenses.bsd3; 37 }; 38}