aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/dendropy
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/dendropy
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/dendropy')
-rw-r--r--nixpkgs/pkgs/development/python-modules/dendropy/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/dendropy/default.nix b/nixpkgs/pkgs/development/python-modules/dendropy/default.nix
new file mode 100644
index 00000000000..c0055580c40
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/dendropy/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, pkgs
+, buildPythonPackage
+, fetchFromGitHub
+, pytest
+}:
+
+buildPythonPackage rec {
+ pname = "DendroPy";
+ version = "4.4.0";
+
+ # tests are incorrectly packaged in pypi version
+ src = fetchFromGitHub {
+ owner = "jeetsukumaran";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9";
+ };
+
+ preCheck = ''
+ # Needed for unicode python tests
+ export LC_ALL="en_US.UTF-8"
+ cd tests # to find the 'support' module
+ '';
+
+ checkInputs = [ pytest pkgs.glibcLocales ];
+
+ checkPhase = ''
+ pytest -k 'not test_dataio_nexml_reader_tree_list and not test_pscores_with'
+ '';
+
+ meta = {
+ homepage = https://dendropy.org/;
+ description = "A Python library for phylogenetic computing";
+ maintainers = with lib.maintainers; [ unode ];
+ license = lib.licenses.bsd3;
+ };
+}